cacti and friends
The last days I spent some time installing digitemp sensors on my watercooling system and setting up cacti to graph the temperatures. For reading the sensors I use this little python script: from subprocess import Popen, PIPE, STDOUT from string import * from sys import * process = Popen("digitemp_DS9097 -q -c /etc/digitemp.conf -r2000 -a", shell=True, stdout=PIPE, stderr=STDOUT) identifiers = argv[1:] identifiers = map(lambda x: x+":",identifiers) n = len(identifiers) values = [.0]*n valuecount = 0 for line in process.stdout: line = line.split() values[valuecount] = line[6] valuecount += 1 output = "" for i,j in zip(identifiers,values): j = str(j) output += (i+j+" ") print output It is called by cacti using python /scripts/check_digitemp.py cool air hot out The parameters given to the script are simply labels of your choice. Just make shure they fit the number of sensors installed. Also make sure /etc/digitemp.conf exists and the cacti use...