[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Trouble getting net-snmp to return lm-sensors data



So I'm trying to get net-snmp to return lm_sensors data so I can monitor 
the temperature and fan speed of my PC. But currently it won't return 
any data:

$ snmpwalk -v2c -c public localhost lmSensors 
LM-SENSORS-MIB::lmSensors = No more variables left in this MIB View 
(It is past the end of the MIB tree)

Note that it's not saying that it does not know about lmSensors so it 
seems like it found the MIB alright. Also sensors does return what seems 
like suitable data to me:

$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +50.0°C  (high = +74.0°C, crit = +100.0°C)
Core 1:       +50.0°C  (high = +74.0°C, crit = +100.0°C)
Core 2:       +46.0°C  (high = +74.0°C, crit = +100.0°C)
Core 3:       +50.0°C  (high = +74.0°C, crit = +100.0°C)

it8718-isa-0290
Adapter: ISA adapter
Vcore:        +1.12 V  (min =  +0.00 V, max =  +4.08 V)
Vram:         +1.87 V  (min =  +0.00 V, max =  +4.08 V)
+3.3V:        +3.15 V  (min =  +0.00 V, max =  +4.08 V)
+5V:          +4.70 V  (min =  +0.00 V, max =  +6.85 V)
+12V:        +12.16 V  (min =  +0.00 V, max = +16.32 V)
Vbat:         +3.26 V  
CPU Fan:     1207 RPM  (min =   10 RPM)
F/Low Fan:      0 RPM  (min =   10 RPM)
F/High Fan:  1300 RPM  (min =    0 RPM)
NBr Temp:     +45.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
CPU Temp:     +34.0°C  (low  = +127.0°C, high = +80.0°C)  sensor = thermal diode
intrusion0:  OK

In particular notice the 'V' and 'Temp' labels which I believe should 
allow net-snmp to recognize these as voltages and temperaturs.


Here's what I did so far:

 * I'm running Testing so I installed:
   snmp                 5.4.3~dfsg-3
   snmpd                5.4.3~dfsg-3
   snmp-mibs-downloader 1.1
   libsnmp15            5.4.3~dfsg-3
   lm-sensors           1:3.3.3-1

 * Commented out the 'export MIBS=' line in /etc/default/snmpd. I also 
   tried pointing it to specific MIB files to no avail.

 * Commented out the 'mibs :' line in /etc/snmp/snmp.conf.

 * Here's a summary of /etc/snmp/snmpd.conf:
   agentAddress  udp:127.0.0.1:161
   view   systemonly  included   .1.3.6.1.2.1.1
   view   systemonly  included   .1.3.6.1.2.1.25.1
   rocommunity public  default    -V systemonly
   rouser   authOnlyUser
   sysLocation    Sitting on the Dock of the Bay
   sysContact     Francois Gouget <fgouget@free.fr>
   sysServices    72
   proc  mountd
   proc  ntalkd    4
   proc  sendmail 10 1
   disk       /     10000
   disk       /var  5%
   includeAllDisks  10%
   load   12 10 5
   trapsink     localhost public
   iquerySecName   internalUser       
   rouser          internalUser
   defaultMonitors          yes
   linkUpDownNotifications  yes
   master          agentx

 * I found a comment that claims that net-snmp 5.5 or greater is 
   required to get integration with lm-sensors. Yet I believe that 
   functionality was present long ago and could not find confirmation. 
   Also net-snmp 5.5 is not available in Testing.
   http://www.net-snmp.org/wiki/index.php/Net-SNMP_and_lm-sensors_on_Ubuntu_10.04

So has anyone else been able to get net-snmp and lm-sensors to play nice 
together. Any special tricks?


-- 
Francois Gouget <fgouget@free.fr>              http://fgouget.free.fr/
The nice thing about meditation is that it makes doing nothing quite respectable
                                  -- Paul Dean

Reply to: