Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


ucd/net-SNMP lmSensors -- update Feb 10, 2007
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
chewbacca156



Joined: 04 Apr 2006
Posts: 24

PostPosted: Mon May 26, 2008 2:15 pm    Post subject: Reply with quote

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: 11
Location: UA

PostPosted: Wed Jul 16, 2008 5:29 am    Post subject: Reply with quote

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

PostPosted: Thu Aug 14, 2008 7:27 am    Post subject: Reply with quote

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: 2

PostPosted: Thu Sep 11, 2008 12:34 pm    Post subject: Core-temp improvement Reply with quote

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.



lmsensors-coretemp.tgz
 Description:

Download
 Filename:  lmsensors-coretemp.tgz
 Filesize:  7.5 KB
 Downloaded:  218 Time(s)

Back to top
laos



Joined: 10 Nov 2008
Posts: 1
Location: Pelotas/RS Brasil

PostPosted: Mon Nov 10, 2008 2:50 pm    Post subject: fan graph Reply with quote

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
Simba7



Joined: 11 Sep 2007
Posts: 24

PostPosted: Sat Jan 03, 2009 12:03 am    Post subject: Reply with quote

Is there a way to make this work with dual CPUs?

Here's the output of sensors:
Code:
as99127f-i2c-0-2d
Adapter: SMBus PIIX4 adapter at 0580
VCore 1:   +1.76 V  (min =  +1.54 V, max =  +1.95 V)
VCore 2:   +1.74 V  (min =  +1.54 V, max =  +1.95 V)
+3.3V:     +3.33 V  (min =  +2.96 V, max =  +3.63 V)
+5V:       +4.97 V  (min =  +4.49 V, max =  +5.51 V)
+12V:     +12.59 V  (min =  +9.55 V, max = +14.41 V)
-12V:      -2.03 V  (min =  -4.07 V, max =  -0.32 V)
-5V:       -1.13 V  (min =  -1.76 V, max =  -0.82 V)
fan1:     5273 RPM  (min = 4927 RPM, div = 2)
fan2:     5192 RPM  (min =   -1 RPM, div = 2)
fan3:        0 RPM  (min = 42187 RPM, div = 2)
M/B Temp:     +9 C  (high =  +107 C, hyst =   -95 C)
CPU Temp:  +67.5 C  (high =   +80 C, hyst =   +75 C)
temp3:     +67.5 C  (high =   +80 C, hyst =   +75 C)
vid:      +1.750 V  (VRM Version 8.2)
alarms:   Chassis intrusion detection                      ALARM
beep_enable:
          Sound alarm enabled

CPU is CPU #1 and temp3 is CPU #2.
Back to top
psyvenon



Joined: 06 Jan 2009
Posts: 1

PostPosted: Tue Jan 06, 2009 6:32 am    Post subject: Reply with quote

I have a little problem here...

My graphs aren't working and when i run the verbose query, i gete the following message:

+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_temp.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/share/cacti/site/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, public, 1, , , 161, 500 index'
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, public, 1, , , 161, 500 query sensorDevice'
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, public, 1, , , 161, 500 query sensorName'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/lmsensors_temp.xml'

When i run the script mannualy in console, i get the following error:
"No sensors were found"

So i think that my problem is that SNMP is not working...

How do i solve the problem?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group