![](https://secure.gravatar.com/avatar/6432d643c81f5317915b33444633456d.jpg?s=120&d=mm&r=g)
Hi All, Sorry to take your time with this question but I am sure you can help me with that. On Script section of Observium UNIX agetn I found this script for lm sensor
#!/bin/bash
lmsensors=`which sensors`
if [ $? -eq 0 ] then echo '<<<lmsensors>>>' $lmsensors fi
On my environment the command for getting CPU temp is "sensor"
root@banana:~# sensors fam15h_power-pci-00c4 Adapter: PCI adapter power1: 0.00 W (crit = 25.00 W)
nct6776-isa-0290 Adapter: ISA adapter Vcore: +1.03 V (min = +0.00 V, max = +1.74 V) in1: +1.89 V (min = +0.00 V, max = +0.00 V) ALARM AVCC: +3.33 V (min = +0.00 V, max = +0.00 V) ALARM +3.3V: +3.34 V (min = +0.00 V, max = +0.00 V) ALARM in4: +0.73 V (min = +0.00 V, max = +0.00 V) ALARM in5: +1.71 V (min = +0.00 V, max = +0.00 V) ALARM 3VSB: +3.44 V (min = +0.00 V, max = +0.00 V) ALARM Vbat: +3.28 V (min = +0.00 V, max = +0.00 V) ALARM fan1: 0 RPM (min = 0 RPM) ALARM fan2: 1234 RPM (min = 0 RPM) ALARM fan3: 0 RPM (min = 0 RPM) ALARM fan4: 0 RPM (min = 0 RPM) ALARM fan5: 0 RPM (min = 0 RPM) ALARM SYSTIN: +40.0°C (high = +0.0°C, hyst = +0.0°C) ALARM sensor = thermistor CPUTIN: +42.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor AUXTIN: +47.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor cpu0_vid: +0.000 V intrusion0: OK intrusion1: ALARM
In order to plot some nice graphs in observiu, how can I integrate that command in that script ?
Thanks
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
The command for getting cpu temp on your system is "sensors", exactly as used by the lmsensors script.
http://www.observium.org/docs/unix_agent/
adam. On 18/11/2015 14:47:39, Federico Olivieri lvrfrc87@gmail.com wrote: Hi All, Sorry to take your time with this question but I am sure you can help me with that. On Script section of Observium UNIX agetn I found this script for lm sensor
#!/bin/bash
lmsensors=`which sensors`
if [ $? -eq 0 ] then echo '<<<lmsensors>>>' $lmsensors fi
On my environment the command for getting CPU temp is "sensor"
root@banana:~# sensors fam15h_power-pci-00c4 Adapter: PCI adapter power1: 0.00 W (crit = 25.00 W)
nct6776-isa-0290 Adapter: ISA adapter Vcore: +1.03 V (min = +0.00 V, max = +1.74 V) in1: +1.89 V (min = +0.00 V, max = +0.00 V) ALARM AVCC: +3.33 V (min = +0.00 V, max = +0.00 V) ALARM +3.3V: +3.34 V (min = +0.00 V, max = +0.00 V) ALARM in4: +0.73 V (min = +0.00 V, max = +0.00 V) ALARM in5: +1.71 V (min = +0.00 V, max = +0.00 V) ALARM 3VSB: +3.44 V (min = +0.00 V, max = +0.00 V) ALARM Vbat: +3.28 V (min = +0.00 V, max = +0.00 V) ALARM fan1: 0 RPM (min = 0 RPM) ALARM fan2: 1234 RPM (min = 0 RPM) ALARM fan3: 0 RPM (min = 0 RPM) ALARM fan4: 0 RPM (min = 0 RPM) ALARM fan5: 0 RPM (min = 0 RPM) ALARM SYSTIN: +40.0°C (high = +0.0°C, hyst = +0.0°C) ALARM sensor = thermistor CPUTIN: +42.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor AUXTIN: +47.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor cpu0_vid: +0.000 V intrusion0: OK intrusion1: ALARM
In order to plot some nice graphs in observiu, how can I integrate that command in that script ?
Thanks _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Federico Olivieri