|
|
| Author |
Message |
chewbacca156
Joined: 04 Apr 2006 Posts: 24
|
Posted: Mon May 26, 2008 2:15 pm Post subject: |
|
|
Here is the solution to get multiple sources graph working (such as 8x -or less- thermals, voltages and fans) :
- In graph templates, select the template (8x thermals for exemple)
- In each Graph Item Input (Thermal Sensor 1, 2, etc...), tick the line AND gprints associated
- save and now smile watching your graphs
|
|
| Back to top |
|
 |
Xirss
Joined: 26 May 2008 Posts: 9 Location: UA
|
Posted: Wed Jul 16, 2008 5:29 am Post subject: |
|
|
I use cacti for monitoring lmsensors on some servers - and on one I have trouble - in graphs I have all zero values on graph.
On command /usr/bin/php -q /var/www/cacti/scripts/netsnmp_lmsensors.php voltage 10.0.0.1, dKD:83ls, 3, User, Password, MD5, , [None], , 161, 500 query sensorReading I get this result:
| Code: | 1:1.216
2:3.328
3:0
4:4.972
5:11.904
6:0
7:0
8:4.919
9:3.232
16:1.55
|
|
|
| Back to top |
|
 |
x00xTheEv1l
Joined: 14 Aug 2008 Posts: 1
|
Posted: Thu Aug 14, 2008 7:27 am Post subject: |
|
|
| chewbacca156 wrote: | Here is the solution to get multiple sources graph working (such as 8x -or less- thermals, voltages and fans) :
- In graph templates, select the template (8x thermals for exemple)
- In each Graph Item Input (Thermal Sensor 1, 2, etc...), tick the line AND gprints associated
- save and now smile watching your graphs  |
Hello, please can you describe, where should be the line AND gprints associated ? Im watching to my Graph Item Input and there is no such line ...
Thanks in the advance ...
|
|
| Back to top |
|
 |
lbegault
Joined: 11 Sep 2008 Posts: 1
|
Posted: Thu Sep 11, 2008 12:34 pm Post subject: Core-temp improvement |
|
|
I made some modification to the script in order to support lmsensors core temp values (for multi core cpu). Here is the script, the new dataquery and a graph template for a 4x sensor.
Just a note: for graph the 1st value has a 100-value cdef as a workaround of the intel core-sensor bug.
Hope it can help someone.
| Description: |
|
 Download |
| Filename: |
lmsensors-coretemp.tgz |
| Filesize: |
7.5 KB |
| Downloaded: |
118 Time(s) |
|
|
| Back to top |
|
 |
laos
Joined: 10 Nov 2008 Posts: 1 Location: Pelotas/RS Brasil
|
Posted: Mon Nov 10, 2008 2:50 pm Post subject: fan graph |
|
|
im using cacti 0.8.7b with net-snmp version 5.4.1 and sensors version 3.0.0 in ubuntu server edition 8.04.1 everything works fine after i update the script but in ucd/net - lmSensors - Fan Sensors i got this: This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
i run and get this:
| Code: |
+ Running data query [13].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_fan.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/share/cacti/site/scripts/netsnmp_lmsensors.php fan 127.0.0.1, public, 2, , , MD5, , DES, , 161, 500 index'
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/netsnmp_lmsensors.php fan 127.0.0.1, public, 2, , , MD5, , DES, , 161, 500 query sensorDevice'
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/netsnmp_lmsensors.php fan 127.0.0.1, public, 2, , , MD5, , DES, , 161, 500 query sensorName'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_fan.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_fan.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_fan.xml'
|
sensors returns this:
| Code: |
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp: -49.0°C
Core1 Temp: +39.0°C
f71882fg-isa-0e80
Adapter: ISA adapter
3.3V: +3.44 V
Vcore: +1.27 V (max = +2.04 V)
Vdimm: +1.89 V
Vchip: +1.57 V
+5V: +5.04 V
12V: +14.37 V
5VSB: +8.82 V
3VSB: +3.42 V
Battery: +3.10 V
CPU: 2276 RPM
System: 3355 RPM
Power: 0 RPM ALARM
Aux: 0 RPM ALARM
CPU: +32.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +100.0°C, hyst = +96.0°C) sensor = transistor
System: +34.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +100.0°C, hyst = +96.0°C) sensor = thermistor
|
snmpwalk -v 2c -c public localhost sensors returns
| Code: |
LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: Core0 Temp
LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: Core1 Temp
LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: temp3
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 4294918296
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 40000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 127000
LM-SENSORS-MIB::lmVoltSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmVoltSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmVoltSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmVoltSensorsIndex.4 = INTEGER: 3
LM-SENSORS-MIB::lmVoltSensorsIndex.5 = INTEGER: 4
LM-SENSORS-MIB::lmVoltSensorsIndex.6 = INTEGER: 5
LM-SENSORS-MIB::lmVoltSensorsIndex.7 = INTEGER: 6
LM-SENSORS-MIB::lmVoltSensorsIndex.8 = INTEGER: 7
LM-SENSORS-MIB::lmVoltSensorsDevice.1 = STRING: 3.3V
LM-SENSORS-MIB::lmVoltSensorsDevice.2 = STRING: Vcore
LM-SENSORS-MIB::lmVoltSensorsDevice.3 = STRING: Vdimm
LM-SENSORS-MIB::lmVoltSensorsDevice.4 = STRING: Vchip
LM-SENSORS-MIB::lmVoltSensorsDevice.5 = STRING: +5V
LM-SENSORS-MIB::lmVoltSensorsDevice.6 = STRING: 12V
LM-SENSORS-MIB::lmVoltSensorsDevice.7 = STRING: 5VSB
LM-SENSORS-MIB::lmVoltSensorsDevice.8 = STRING: 3VSB
LM-SENSORS-MIB::lmVoltSensorsValue.1 = Gauge32: 3439
LM-SENSORS-MIB::lmVoltSensorsValue.2 = Gauge32: 1264
LM-SENSORS-MIB::lmVoltSensorsValue.3 = Gauge32: 1887
LM-SENSORS-MIB::lmVoltSensorsValue.4 = Gauge32: 1568
LM-SENSORS-MIB::lmVoltSensorsValue.5 = Gauge32: 5040
LM-SENSORS-MIB::lmVoltSensorsValue.6 = Gauge32: 14266
LM-SENSORS-MIB::lmVoltSensorsValue.7 = Gauge32: 8820
LM-SENSORS-MIB::lmVoltSensorsValue.8 = Gauge32: 3423
LM-SENSORS-MIB::lmMiscSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmMiscSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmMiscSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmMiscSensorsIndex.4 = INTEGER: 3
LM-SENSORS-MIB::lmMiscSensorsIndex.5 = INTEGER: 4
LM-SENSORS-MIB::lmMiscSensorsIndex.6 = INTEGER: 5
LM-SENSORS-MIB::lmMiscSensorsIndex.7 = INTEGER: 6
LM-SENSORS-MIB::lmMiscSensorsDevice.1 = STRING: Battery
LM-SENSORS-MIB::lmMiscSensorsDevice.2 = STRING: CPU
LM-SENSORS-MIB::lmMiscSensorsDevice.3 = STRING: System
LM-SENSORS-MIB::lmMiscSensorsDevice.4 = STRING: CPU
LM-SENSORS-MIB::lmMiscSensorsDevice.5 = STRING: System
LM-SENSORS-MIB::lmMiscSensorsDevice.6 = STRING: Power
LM-SENSORS-MIB::lmMiscSensorsDevice.7 = STRING: Aux
LM-SENSORS-MIB::lmMiscSensorsValue.1 = Gauge32: 3104
LM-SENSORS-MIB::lmMiscSensorsValue.2 = Gauge32: 33000
LM-SENSORS-MIB::lmMiscSensorsValue.3 = Gauge32: 34000
LM-SENSORS-MIB::lmMiscSensorsValue.4 = Gauge32: 2276000
LM-SENSORS-MIB::lmMiscSensorsValue.5 = Gauge32: 3370000
LM-SENSORS-MIB::lmMiscSensorsValue.6 = Gauge32: 0
LM-SENSORS-MIB::lmMiscSensorsValue.7 = Gauge32: 0
|
any idea?
thanks
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|