* Measure the temperature of AMD CPUs.
svn path=/configurations/trunk/tud/; revision=29129
Eelco Dolstra committed
Sep 9, 2011 at 13:51 UTC
b59e5636ba2c72b1689c672f36b557f5b68b1d57
1 file changed
+1
-1
common.nix
+1
-1
@@ -33,7 +33,7 @@
33
services.zabbixAgent.server = "192.168.1.5,127.0.0.1,130.161.158.181";
34
services.zabbixAgent.extraConfig =
35
''
36
- UserParameter=hardware.temp.cpu.average,cat /sys/devices/platform/coretemp.*/temp1_input | ${pkgs.perl}/bin/perl -e 'while (<>) { $n++; $sum += $_; }; print $sum / $n / 1000;'
36
+ UserParameter=hardware.temp.cpu.average,shopt -s nullglob; cat /sys/devices/platform/coretemp.*/temp1_input /sys/bus/pci/drivers/k10temp/*/temp1_input < /dev/null | ${pkgs.perl}/bin/perl -e 'while (<>) { $n++; $sum += $_; }; print $sum / $n / 1000;'
37
UserParameter=vm.memory.dirty,echo $((1024 * $(cat /proc/meminfo | sed 's/Dirty: *\([0-9]\+\) kB/\1/; t; d')))
38
'';
39