LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-28-2010, 07:41 AM   #1
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Rep: Reputation: 75
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.

Last edited by angel115; 07-28-2010 at 09:20 AM.
 
Old 07-28-2010, 09:49 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
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.
 
1 members found this post helpful.
Old 07-28-2010, 10:07 AM   #3
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Hi angel115,

download environment monitoring script from here

i hope it will help you.
 
Old 07-28-2010, 10:37 AM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Original Poster
Rep: Reputation: 75
Hi Sem007
Quote:
Originally Posted by sem007 View Post
Hi angel115,

download environment monitoring script from here

i hope it will help you.
Thanks for that, I'll check it out tomorrow.

Angel.
 
Old 07-29-2010, 07:32 AM   #5
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Original Poster
Rep: Reputation: 75
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.
 
Old 07-29-2010, 08:08 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
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
....
....
 
1 members found this post helpful.
Old 07-30-2010, 01:15 AM   #7
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Original Poster
Rep: Reputation: 75
Any one?
 
Old 01-17-2011, 05:04 AM   #8
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Original Poster
Rep: Reputation: 75
Hi sem007,

Using SNMP V3 solved the issue.

Thank you for helping,
Angel.
 
  


Reply

Tags
nagios, snmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios + snmp aeby Linux - Server 3 08-29-2009 11:15 PM
snmp/nagios nataloi Linux - Software 1 04-11-2009 11:20 PM
SNMP monitoring with Nagios athreyavc Linux - Software 1 05-31-2008 05:47 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
How to change the snmp string in nagios monitoring tool aneeshn Linux - General 1 11-11-2007 06:23 AM


All times are GMT -5. The time now is 01:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration