lm_sensors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

lm_sensors

Post by hanya.radwan »

hi,

I searched a lot how to configure lm_sensors with net_snmp, but I can't the suitable document for that.

thanks,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: lm_sensors

Post by lmiltchev »

I found one for Ubuntu - I am not sure if this is going to be very helpful but here it is:

http://www.net-snmp.org/wiki/index.php/ ... untu_10.04

What have you tried so far? Did you try running snmpwalk to test the lm-sensors MIB?
Be sure to check out our Knowledgebase for helpful articles and solutions!
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: lm_sensors

Post by hanya.radwan »

hi,

I need lm_sensors for solaries and I can't find the best one, can you help me regards that.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: lm_sensors

Post by slansing »

Did you try running snmpwalk to test the lm-sensors MIB?
Lets get the basics out of the way first, so we know you can actually monitor these. Please run an SNMP walk against the OID you are looking for on one of those Solaris systems.

Code: Select all

snmpwalk -v 2c -c commstring remote.solaris.system's.address 1.3.6.1.4.1.2021.13.16
Adjust the line above for your community string, snmp version, and address, that OID should be the correct one.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: lm_sensors

Post by hanya.radwan »

I run the command , and host has net-snmp, the purpose of using lm_sensors is to check power temperature, fans, harddisk faults , motherboard faults, voltage and others


[root@nms ~]# snmpwalk -v 2c -c public 10.200.24.175 1.3.6.1.4.1.2021.13.16
LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 1
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: temp1
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 8300
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: lm_sensors

Post by lmiltchev »

What is the output of the following command?

Code: Select all

snmpwalk -v 2c -c public -m ALL 10.200.24.175 lmSensors
There is some info on monitoring CPU temp, fan and power supply sensors on Solaris here:

http://www.net-snmp.org/docs/README.solaris.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
bdgoecke
Posts: 36
Joined: Wed Oct 22, 2014 3:41 pm

Re: lm_sensors

Post by bdgoecke »

It is working you are getting results.

The reason you are only getting one sensor result could be several issues. It could be a limitation of the hardware, it could be the configuration of the lm-sensors software, or the configuration of the net-snmp.

I would suggest you look for information about what sensors your hardware will support, and then see what sensors net-snmp can be configured to query.

You might also look at the SNMP software offered by Sun, that might have access to more sensors.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: lm_sensors

Post by hanya.radwan »

this the output:
[root@nms ~]# snmpwalk -v 2c -c public -m ALL 10.200.24.175 lmSensors
LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 1
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: temp1
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 8300
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: lm_sensors

Post by lmiltchev »

Did you look for information about what sensors your hardware will support as suggested by bdgoecke?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked