LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Monitoring with Nagios and SNMP (https://www.linuxquestions.org/questions/linux-software-2/monitoring-with-nagios-and-snmp-822614/)

angel115 07-28-2010 07:41 AM

Monitoring with Nagios and SNMP
 
Hello There,

I'm trying to monitor our new BladeCenter H8852 using Nagios and SNMP.

In first place, I'd like to monitor manly the temperatures, fans and voltage of the blade.

But anyway, here is my probleme:
I've setup SNMP v1 in the Blade Center Web UI and used snmpwalk to check what value I can query to achieve what I want, but it doesn't give any temprature, fan nor voltage information.
Code:

# snmpwalk  -Os -c public -v 1 192.168.70.125
sysDescr.0 = STRING: BladeCenter Advanced Management Module
sysObjectID.0 = OID: enterprises.2.6.158.5
sysUpTimeInstance = Timeticks: (60349660) 6 days, 23:38:16.60
sysContact.0 = STRING: root@localhost
sysName.0 = STRING: BLADE--192.168.70.125
sysLocation.0 = STRING: PAPCART
sysServices.0 = INTEGER: 0
sysORLastChange.0 = Timeticks: (2) 0:00:00.02
sysORID.1 = OID: snmpFrameworkMIBCompliance
sysORID.2 = OID: snmpMPDCompliance
sysORID.3 = OID: usmMIBCompliance
sysORID.4 = OID: snmpMIB
sysORID.5 = OID: vacmBasicGroup
sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
sysORUpTime.1 = Timeticks: (1) 0:00:00.01
sysORUpTime.2 = Timeticks: (2) 0:00:00.02
sysORUpTime.3 = Timeticks: (2) 0:00:00.02
sysORUpTime.4 = Timeticks: (2) 0:00:00.02
sysORUpTime.5 = Timeticks: (2) 0:00:00.02
snmpInPkts.0 = Counter32: 176
snmpOutPkts.0 = Counter32: 156
snmpInBadVersions.0 = Counter32: 0
snmpInBadCommunityNames.0 = Counter32: 6
snmpInBadCommunityUses.0 = Counter32: 0
snmpInASNParseErrs.0 = Counter32: 0
snmpInTooBigs.0 = Counter32: 0
snmpInNoSuchNames.0 = Counter32: 0
snmpInBadValues.0 = Counter32: 0
snmpInReadOnlys.0 = Counter32: 0
snmpInGenErrs.0 = Counter32: 0
snmpInTotalReqVars.0 = Counter32: 142
snmpInTotalSetVars.0 = Counter32: 0
snmpInGetRequests.0 = Counter32: 0
snmpInGetNexts.0 = Counter32: 146
snmpInSetRequests.0 = Counter32: 0
snmpInGetResponses.0 = Counter32: 0
snmpInTraps.0 = Counter32: 0
snmpOutTooBigs.0 = Counter32: 0
snmpOutNoSuchNames.0 = Counter32: 0
snmpOutBadValues.0 = Counter32: 0
snmpOutGenErrs.0 = Counter32: 0
snmpOutGetRequests.0 = Counter32: 0
snmpOutGetNexts.0 = Counter32: 0
snmpOutSetRequests.0 = Counter32: 0
snmpOutGetResponses.0 = Counter32: 156
snmpOutTraps.0 = Counter32: 0
snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
snmpSilentDrops.0 = Counter32: 0
snmpProxyDrops.0 = Counter32: 0
#

but I've found here (http://www.snmplink.org/cgi-bin/nd/m...5D/mmblade.mib) the MIB of what it seems to be the MIB for that bladeCenter.
And there I can see few parameters that I should be able to query:
frontPanel2Temp
frontPanelTemp
mt1ThermalTrendingTemperature
bladeSensor1Temp
bladeSensor2Temp

and many more...

but when I try to query these value it doesn't recognise them:
Code:

# ./check_snmp -H 192.168.0.125 -C public -o bladeSensor1Temp
External command error: bladeSensor1Temp: Unknown Object Identifier (Sub-id not found: (top) -> bladeSensor1Temp)
#

in the other hand, if I try to query one of the value given by snmpwalk, it work fine:
Code:

/check_snmp -H 192.168.0.125 -C public -o sysORDescr.3
SNMP OK - The management information definitions for the SNMP User-based Security Model. |
#

Why I can't query these OIDs?
Why does snmpwalk doesn't show these OIDs (bladeSensor1Temp, etc...)?

Best regards,
Angel.

sem007 07-28-2010 09:49 AM

There is a one script which i use for cisco routers/switches to monitor same things. This script also works for many device.

I forgot location where i download.give me a movement i search out link and provide you.

sem007 07-28-2010 10:07 AM

Hi angel115,

download environment monitoring script from here

i hope it will help you.

angel115 07-28-2010 10:37 AM

Hi Sem007
Quote:

Originally Posted by sem007 (Post 4048027)
Hi angel115,

download environment monitoring script from here

i hope it will help you.

Thanks for that, I'll check it out tomorrow.

Angel.

angel115 07-29-2010 07:32 AM

Hi Sem007,

This script doesn't work for our Blade Center (although it work fine on most of our Cisco routers).

What I would need, is more something like the following I guess:
Code:

check_snmp -H 192.168.0.125 -C public -o bladeSensor1Temp
But it doesn't seems to recognise it.

sem007 07-29-2010 08:08 AM

Hi angel115,

Which OS you are use on server?
I am not sure but there is problem in snmp. Why you are not use snmp v2c or v3.

Quote:

snmpInBadVersions.0 = Counter32: 0
snmpInBadCommunityNames.0 = Counter32: 6
snmpInBadCommunityUses.0 = Counter32: 0
....
....

angel115 07-30-2010 01:15 AM

Any one?

angel115 01-17-2011 05:04 AM

Hi sem007,

Using SNMP V3 solved the issue.

Thank you for helping,
Angel.


All times are GMT -5. The time now is 12:21 AM.