LinuxQuestions.org
Review your favorite Linux distribution.
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 04-10-2009, 11:54 AM   #1
nataloi
Member
 
Registered: Apr 2009
Distribution: Linux version 2.6.25-14.fc9.i686 (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) )
Posts: 30

Rep: Reputation: 15
snmp/nagios


Hello All hopefully I am posting this issue in the correct forum

I am trying to get something to work in Nagios and my command generates a response of unknown, but the snmpwalk generates a value of 2
I also tried another oid and the values generated are identical for the
snmpwalk and the snmpget

(the one for the upsBatteryStatus is the one I am curious about)

[root@nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0
SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds

[root@nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0
SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1)
[root@nagios mibwalk]#


UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2)
UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds

Thanks for any help you can provide.
 
Old 04-11-2009, 11:20 PM   #2
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
You might want to try asking this on a nagios forum (http://forums.meulie.net/viewforum.php?f=60).

However, I will recommend that you try:
1) test running the check plugin (with the exact args that are getting passed to it) *as the nagios user*.

2) Try using full numerical OIDs for what you want to check.
 
  


Reply


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 monitoring with Nagios athreyavc Linux - Software 1 05-31-2008 05:47 PM
Nagios and SNMP Deaclen Linux - Software 1 02-28-2007 09:12 AM
Nagios and snmp authentication ebel.velda Linux - Software 1 02-28-2007 09:08 AM
Using SNMP in NAGIOS Bzw Linux - Networking 3 12-06-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration