LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2011, 11:41 AM   #1
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 537

Rep: Reputation: 79
Regex matching with check_snmp and nagios


Hello There,


I'm trying to generate a critical error when my OID is at "0".
but what ever I do it still say "SNMP OK"

Code:
# ./check_snmp -H 192.6.2.150  -C public -o SNMPv2-SMI::mib-2.33.1.9.9.0 -r 0
SNMP OK - 0 | SNMPv2-SMI::mib-2.33.1.9.9.0=0
#
# ./check_snmp -H 192.6.2.150  -C public -o SNMPv2-SMI::mib-2.33.1.9.9.0 -r 1
SNMP OK - 0 | SNMPv2-SMI::mib-2.33.1.9.9.0=0
#
#./check_snmp -H 192.6.2.150  -C public -o SNMPv2-SMI::mib-2.33.1.9.9.0 -s 1
SNMP OK - 0 | SNMPv2-SMI::mib-2.33.1.9.9.0=0
#
# ./libexec/check_snmp -H 192.6.2.150  -C public -o SNMPv2-SMI::mib-2.33.1.9.9.0 -s 0
SNMP OK - 0 | SNMPv2-SMI::mib-2.33.1.9.9.0=0
#

But if I do the same check using a string on a diffrent OID it's working as expected:
Code:
# ./check_snmp -H 192.6.2.150  -C public -o SNMPv2-MIB::sysContact.0 -r Com
SNMP OK - Computer Room Manager |
# ./check_snmp -H 192.6.2.150  -C public -o SNMPv2-MIB::sysContact.0 -r KO
SNMP CRITICAL - *Computer Room Manager* |
#
Any idea about what I'm doing wrong?
or
Is there a bug to filter interger result?

Best regards,
Angel.
 
Old 01-29-2011, 04:55 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 537

Original Poster
Rep: Reputation: 79
Wow after few days still no answer!!!

Is my question is unclear or that difficult?
Am I the only one to get this kind of issue?

Regards,
angel.
 
Old 02-07-2011, 03:10 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 537

Original Poster
Rep: Reputation: 79
If anyone got a lead I'll be thanks full.

Best regards,
Angel.
 
  


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 check_snmp not found sp149 Linux - Server 10 01-04-2017 09:32 AM
[SOLVED] Nagios check_snmp V3 timeout angel115 Linux - Software 4 10-08-2010 08:52 AM
Nagios plugin check_snmp not returning correct information DrStrangepork Linux - Software 2 09-25-2009 11:43 AM
using nagios check_snmp plugin to get snmp info from computer umarzuki Linux - Networking 2 09-08-2009 04:12 AM
Nagios check_snmp plugin not found ataru Linux - Server 8 04-10-2009 03:18 PM

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

All times are GMT -5. The time now is 12:47 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