|
|
| Author |
Message |
skysurfer
Joined: 07 Aug 2007 Posts: 9
|
Posted: Thu Jan 17, 2008 7:14 am Post subject: |
|
|
| orion wrote: | what do you get when you run snmpwalk -v 2c -c public <IP Address> sensors
do you get anything |
root ~ # snmpwalk -v 2c -c public 127.0.0.1 sensors
sensors: Unknown Object Identifier (Sub-id not found: (top) -> sensors)
|
|
| Back to top |
|
 |
orion
Joined: 04 Jan 2008 Posts: 7
|
Posted: Thu Jan 17, 2008 7:38 am Post subject: |
|
|
Sounds like your missing LM_sensors support in snmp
what Linux distra are you using?
|
|
| Back to top |
|
 |
mhoogenbosch
Joined: 17 Jan 2008 Posts: 4
|
Posted: Thu Jan 17, 2008 8:27 am Post subject: |
|
|
i'm getting my tems in the misc section of snmp, is there a way to read these values in cacti?
can this be done by a simple adjustment to the php script, or can i make snmp to reportback with the correct names?
Probaly the reason for my temps showing up in misc is the kernel patch i have to apply for my temps to show
|
|
| Back to top |
|
 |
orion
Joined: 04 Jan 2008 Posts: 7
|
Posted: Thu Jan 17, 2008 8:49 am Post subject: |
|
|
I think all you need to do is relabel the temps correctly and then it should pick them up. I believe they have to be temp1,temp2.. etc
Not sure how to do tat though I think you just need to put them into the conf file /etc/sensors.conf but I could be wrong
|
|
| Back to top |
|
 |
mhoogenbosch
Joined: 17 Jan 2008 Posts: 4
|
Posted: Thu Jan 17, 2008 8:57 am Post subject: |
|
|
| orion wrote: | I think all you need to do is relabel the temps correctly and then it should pick them up. I believe they have to be temp1,temp2.. etc
Not sure how to do tat though I think you just need to put them into the conf file /etc/sensors.conf but I could be wrong | that's the weird thing, in sensors.conf the sensors are named correctly :
chip "f71882fg-*"
# Temperature
label temp1 "CPU"
label temp2 "System"
ignore temp3
and if i check phpsysinfo the correct temps are beeing displayd
|
|
| Back to top |
|
 |
orion
Joined: 04 Jan 2008 Posts: 7
|
Posted: Thu Jan 17, 2008 9:15 am Post subject: |
|
|
| Well then thats beyond my knowledge but in saying that if you do find a solution please let me know cause I have the same issue with the voltages on one of my computers
|
|
| Back to top |
|
 |
skysurfer
Joined: 07 Aug 2007 Posts: 9
|
Posted: Thu Jan 17, 2008 6:28 pm Post subject: |
|
|
| orion wrote: | Sounds like your missing LM_sensors support in snmp
what Linux distra are you using? |
I have built net-snmp with lm_sensors support. I 'm using Arch Linux
|
|
| Back to top |
|
 |
tiger.tw
Joined: 21 Jan 2008 Posts: 6
|
Posted: Mon Jan 21, 2008 8:14 am Post subject: lmsensors via smpt and cacti 0.8.7a |
|
|
| skysurfer wrote: | lm_sensors not working since upgrade to cacti 0.8.7a
need help plz  |
I had some trouble to setup this plugin in cacti 0.8.7a, too.
I tried to get it working with snmp V3. But it looks like there are some changes in version 0.8.7 regarding snmp, so i had to alter some of the plugin scripts. Now they work fine (for me).
Does someone know who is maintaining this project?
Perhaps my changes will be usefull
|
|
| Back to top |
|
 |
tiger.tw
Joined: 21 Jan 2008 Posts: 6
|
Posted: Mon Jan 28, 2008 8:31 am Post subject: lmsensors via smpt and cacti 0.8.7a |
|
|
Find my modified version for cacti 0.8.7a attached to this post.
No guarantee that it is working for everyone. I am using it with snmp V3.
I have not made any changes to the templates.
Only files in "scripts" and "script_queries" directory were altered.
Happy testing...
| Description: |
|
 Download |
| Filename: |
cacti-0.8.7a-netsnmp-lmsensors.zip |
| Filesize: |
26.41 KB |
| Downloaded: |
822 Time(s) |
|
|
| Back to top |
|
 |
skysurfer
Joined: 07 Aug 2007 Posts: 9
|
Posted: Thu Jan 31, 2008 9:56 am Post subject: |
|
|
No luck here
|
|
| Back to top |
|
 |
tiger.tw
Joined: 21 Jan 2008 Posts: 6
|
Posted: Thu Jan 31, 2008 10:10 am Post subject: |
|
|
| skysurfer wrote: | No luck here  |
I had compiled net-snmp-5.2.4 (got other problems with newer versions, so i used the older one) myself on SuSE Linux 9.3, SuSe Linux 10.0 and Debian Etch with the following compile-string.
| Code: |
./configure '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--with-sys-contact=root@localhost' '--with-mib-modules=host ucd-snmp/pass_persist misc/ipfwacc smux ucd-snmp/diskio tunnel disman/event-mib ucd-snmp/lmSensors' '--with-persistent-directory=/var/lib/net-snmp' '--with-libwrap=/usr' '--with-libs=-lsensors' '--sysconfdir=/etc'
|
Using lmsensors 2.9.1 on SuSE and lmsensors 2.10.1 on Debian
Cannot say more on this.
Does this patch work for other downloaders?
|
|
| Back to top |
|
 |
mhoogenbosch
Joined: 17 Jan 2008 Posts: 4
|
Posted: Fri Feb 01, 2008 3:22 am Post subject: |
|
|
| orion wrote: | | Well then thats beyond my knowledge but in saying that if you do find a solution please let me know cause I have the same issue with the voltages on one of my computers | well, it actually was quite simple. Once i've changed snmp query in netsnmp_lmsensors.php it just worked.
This can be done with the fans aswell, in my case they're in the misc categroy aswell.
|
|
| Back to top |
|
 |
skysurfer
Joined: 07 Aug 2007 Posts: 9
|
Posted: Mon Feb 04, 2008 6:58 am Post subject: |
|
|
well... i am stupid!
the problem was that lm_sensors 3.x wasn't compatible with my net-snmp version.
a downgrade did the job. everything's fine now
thank u all for the help!
|
|
| Back to top |
|
 |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Sun Mar 09, 2008 4:28 am Post subject: |
|
|
I am getting Success [0 Items, 0 Rows] from the Verbose Query, but when I do an SNMP walk everything is fine:
| Quote: |
snmpwalk -v 2c -c *** *.*.*.* sensors
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: Chip Temp
LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: CPU Temp
LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: Sys Temp
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 53000
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 86000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 52000
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::lmVoltSensorsDevice.1 = STRING: +2.5V
LM-SENSORS-MIB::lmVoltSensorsDevice.2 = STRING: VCore
LM-SENSORS-MIB::lmVoltSensorsDevice.3 = STRING: +3.3V
LM-SENSORS-MIB::lmVoltSensorsDevice.4 = STRING: +5V
LM-SENSORS-MIB::lmVoltSensorsDevice.5 = STRING: VCC
LM-SENSORS-MIB::lmVoltSensorsDevice.6 = STRING: +1.5V
LM-SENSORS-MIB::lmVoltSensorsDevice.7 = STRING: +1.8V
LM-SENSORS-MIB::lmVoltSensorsValue.1 = Gauge32: 2500
LM-SENSORS-MIB::lmVoltSensorsValue.2 = Gauge32: 1723
LM-SENSORS-MIB::lmVoltSensorsValue.3 = Gauge32: 3334
LM-SENSORS-MIB::lmVoltSensorsValue.4 = Gauge32: 5155
LM-SENSORS-MIB::lmVoltSensorsValue.5 = Gauge32: 3334
LM-SENSORS-MIB::lmVoltSensorsValue.6 = Gauge32: 1516
LM-SENSORS-MIB::lmVoltSensorsValue.7 = Gauge32: 1808
LM-SENSORS-MIB::lmMiscSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmMiscSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmMiscSensorsDevice.1 = STRING: vid
LM-SENSORS-MIB::lmMiscSensorsDevice.2 = STRING: vrm
LM-SENSORS-MIB::lmMiscSensorsValue.1 = Gauge32: 1750
LM-SENSORS-MIB::lmMiscSensorsValue.2 = Gauge32: 9000
|
Do I have to change anything in sensors.conf? I checked the file, and it seems like everything is labeled with temp1 etc?
This is from the Verbose Query:
| Quote: |
+ Running data query [27].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/netsnmp_lmsensors.php temperature *.*.*.*, ***, 2, , , 161, 500 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/netsnmp_lmsensors.php temperature *.*.*.*, ***, 2, , , 161, 500 query sensorDevice'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/netsnmp_lmsensors.php temperature *.*.*.*, ***, 2, , , 161, 500 query sensorName'
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
|
/Carl
|
|
| Back to top |
|
 |
tiger.tw
Joined: 21 Jan 2008 Posts: 6
|
Posted: Wed Mar 12, 2008 3:39 am Post subject: |
|
|
| cwahlin wrote: | I am getting Success [0 Items, 0 Rows] from the Verbose Query, but when I do an SNMP walk everything is fine:
Do I have to change anything in sensors.conf? I checked the file, and it seems like everything is labeled with temp1 etc?
This is from the Verbose Query:
| Quote: |
+ Running data query [27].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/netsnmp_lmsensors.php temperature *.*.*.*, ***, 2, , , 161, 500 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/netsnmp_lmsensors.php temperature *.*.*.*, ***, 2, , , 161, 500 query sensorDevice'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/netsnmp_lmsensors.php temperature *.*.*.*, ***, 2, , , 161, 500 query sensorName'
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/var/www/html/resource/script_queries/lmsensors_temp.xml'
|
/Carl |
Some informations about your system like OS and versionnumbers of sensors, snmp, cacti, plugin, etc. could be helpful to help you
|
|
| Back to top |
|
 |
|