You are not logged in.
Pages: 1
Hi all,
So, because my pc shuts down intermittently for no discernible reason I've come across sensord and the related rrdcgi. Question is, how the hell do I work them? My sensord command is
sudo sensord -i 1 -l 1m -t 5m -r '/mnt/linstorage/sensord/sensord.rrd' -g '/mnt/linstorage/sensord/sensord.rrd'
I tried copying the code sensord came out with:
#!/usr/bin/rrdcgi
<html>
<head>
<title>sensord</title>
</head>
<body>
<h1>sensord</h1>
<h2>Daily Temperature Summary</h2>
<p>
<RRD::GRAPH /mnt/linstorage/sensord/sensord.rrd/daily-temperature.png
--imginfo '<img src=/sensord/%s width=%lu height=%lu>'
-a PNG
-h 200 -w 800
--lazy
-v 'Temperature (C)'
-t 'Temperature'
-x 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00'
-s -1d -l 0
DEF:temp1=/mnt/linstorage/sensord/sensord.rrd:temp1:AVERAGE
DEF:temp2=/mnt/linstorage/sensord/sensord.rrd:temp2:AVERAGE
DEF:temp1_0=/mnt/linstorage/sensord/sensord.rrd:temp1_0:AVERAGE
DEF:temp1_1=/mnt/linstorage/sensord/sensord.rrd:temp1_1:AVERAGE
LINE2:temp1#55e65c:"CPU Temperature"
LINE2:temp2#43c26f:"MB Temperature"
LINE2:temp1_0#c14040:"temp1"
LINE2:temp1_1#c14040:"temp1">
</p>
<h2>Daily Fan Speed Summary</h2>
<p>
<RRD::GRAPH /mnt/linstorage/sensord/sensord.rrd/daily-rpm.png
--imginfo '<img src=/sensord/%s width=%lu height=%lu>'
-a PNG
-h 200 -w 800
--lazy
-v 'Speed (RPM)'
-t 'Fan Speed'
-x 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00'
-s -1d -l 0 -X 0
DEF:fan1=/mnt/linstorage/sensord/sensord.rrd:fan1:AVERAGE
DEF:fan2=/mnt/linstorage/sensord/sensord.rrd:fan2:AVERAGE
DEF:fan3=/mnt/linstorage/sensord/sensord.rrd:fan3:AVERAGE
LINE2:fan1#527f05:"CPU Fan Speed"
LINE2:fan2#e6590c:"Chassis Fan Speed"
LINE2:fan3#bcaf73:"Power Fan Speed">
</p>
<h2>Daily Voltage Summary</h2>
<p>
<RRD::GRAPH /mnt/linstorage/sensord/sensord.rrd/daily-voltage.png
--imginfo '<img src=/sensord/%s width=%lu height=%lu>'
-a PNG
-h 200 -w 800
--lazy
-v 'Voltage (V)'
-t 'Power Supply'
-x 'HOUR:1:HOUR:3:HOUR:3:0:%b %d %H:00'
-s -1d --alt-autoscale
DEF:in0=/mnt/linstorage/sensord/sensord.rrd:in0:AVERAGE
DEF:in1=/mnt/linstorage/sensord/sensord.rrd:in1:AVERAGE
DEF:in2=/mnt/linstorage/sensord/sensord.rrd:in2:AVERAGE
DEF:in3=/mnt/linstorage/sensord/sensord.rrd:in3:AVERAGE
LINE2:in0#4f6f53:"Vcore Voltage"
LINE2:in1#81a765:"+3.3V Voltage"
LINE2:in2#c29330:"+5V Voltage"
LINE2:in3#48614e:"+12V Voltage">
</p>
<h2>Weekly Temperature Summary</h2>
<p>
<RRD::GRAPH /mnt/linstorage/sensord/sensord.rrd/weekly-temperature.png
--imginfo '<img src=/sensord/%s width=%lu height=%lu>'
-a PNG
-h 200 -w 800
--lazy
-v 'Temperature (C)'
-t 'Temperature'
-x 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d'
-s -1w -l 0
DEF:temp1=/mnt/linstorage/sensord/sensord.rrd:temp1:AVERAGE
DEF:temp2=/mnt/linstorage/sensord/sensord.rrd:temp2:AVERAGE
DEF:temp1_0=/mnt/linstorage/sensord/sensord.rrd:temp1_0:AVERAGE
DEF:temp1_1=/mnt/linstorage/sensord/sensord.rrd:temp1_1:AVERAGE
LINE2:temp1#55e65c:"CPU Temperature"
LINE2:temp2#43c26f:"MB Temperature"
LINE2:temp1_0#c14040:"temp1"
LINE2:temp1_1#c14040:"temp1">
</p>
<h2>Weekly Fan Speed Summary</h2>
<p>
<RRD::GRAPH /mnt/linstorage/sensord/sensord.rrd/weekly-rpm.png
--imginfo '<img src=/sensord/%s width=%lu height=%lu>'
-a PNG
-h 200 -w 800
--lazy
-v 'Speed (RPM)'
-t 'Fan Speed'
-x 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d'
-s -1w -l 0 -X 0
DEF:fan1=/mnt/linstorage/sensord/sensord.rrd:fan1:AVERAGE
DEF:fan2=/mnt/linstorage/sensord/sensord.rrd:fan2:AVERAGE
DEF:fan3=/mnt/linstorage/sensord/sensord.rrd:fan3:AVERAGE
LINE2:fan1#527f05:"CPU Fan Speed"
LINE2:fan2#e6590c:"Chassis Fan Speed"
LINE2:fan3#bcaf73:"Power Fan Speed">
</p>
<h2>Weekly Voltage Summary</h2>
<p>
<RRD::GRAPH /mnt/linstorage/sensord/sensord.rrd/weekly-voltage.png
--imginfo '<img src=/sensord/%s width=%lu height=%lu>'
-a PNG
-h 200 -w 800
--lazy
-v 'Voltage (V)'
-t 'Power Supply'
-x 'HOUR:6:DAY:1:DAY:1:86400:%a %b %d'
-s -1w --alt-autoscale
DEF:in0=/mnt/linstorage/sensord/sensord.rrd:in0:AVERAGE
DEF:in1=/mnt/linstorage/sensord/sensord.rrd:in1:AVERAGE
DEF:in2=/mnt/linstorage/sensord/sensord.rrd:in2:AVERAGE
DEF:in3=/mnt/linstorage/sensord/sensord.rrd:in3:AVERAGE
LINE2:in0#4f6f53:"Vcore Voltage"
LINE2:in1#81a765:"+3.3V Voltage"
LINE2:in2#c29330:"+5V Voltage"
LINE2:in3#48614e:"+12V Voltage">
</p>
<p>
<small><b>sensord</b> by <a href="mailto:merlin@merlin.org">Merlin Hughes</a>, all credit to the <a href="http://www.lm-sensors.org/">lm_sensors</a> crew.</small>
</p>
</body>
</html>
into a file with suffix .html and then opening in browser, but nothing shows other than the code in html format. I also tried to open the `http://localhost/cgi-bin/sensord.cgi' url but firefox gives 'cannot connect to localhost' error page.
I then copied the /usr/bin/rrdcgi code into the actual /usr/bin/rrdcgi file and opening the localhost url but still same error as before.
tl:dr
Please someone give a walk through of sensord and rrdcgi as the manpages are poop!
“Solitude is impractical and yet society is fatal.” (Emerson, R. W.)
Offline
Pages: 1