Check_SNMP Plugin Problem

Jones, Stuart Stuart.Jones at health.wa.gov.au
Mon Apr 16 05:23:19 CEST 2012


Hello Kfir,

 

Here is an extract from my setting:

 

check_command        check_snmp!-C public -o ifOperStatus.5 -r 1 -m
RFC1213-MIB ; 1 is up, 2 is down, 3 is testing, 4 is unknown, 5 is
dormant

 

Note the sensor states [1 - 5].

 

 

 

I would suggest you use a MIB browser like iReasoning and check the
states - status prior to locking down your Nagios config file.

 

 

Cheers, Stuart

 

 

 

 

________________________________

From: Kfir Yogev (RRsat) [mailto:kfir.y at rrsat.com] 
Sent: Thursday, 12 April 2012 8:36 PM
To: nagios-users at lists.sourceforge.net;
nagiosplug-devel at lists.sourceforge.net
Subject: [Nagios-users] Check_SNMP Plugin Problem

 

Dear Nagios Team,

 

I am a new user with Nagios.

I am monitoring on of my switches, by using the Check_SNMP Plugin.

 

As explained on your tutorial, the "-r" in the command "check_snmp!-C
public -o ifOperStatus.1 -r 1 -m RFC1213-MIB" refers to the port state
on my switch.

 

the problem is, that although nothing is connected to the port, the
Nagios shows that the port connectivity is OK.

It identifies the port state (1,2,3) but the nagios doesn't show
something is wrong.

 

See below:

 

 

 

 

On the configuration file I configured:

 

# Monitor Ports status via SNMP

 

define service{

       use                  generic-service      ; Inherit values from a
template

       host_name            LAB-C Switch

       service_description  Port 1 Link Status

       check_command        check_snmp!-C public -o ifOperStatus.1 -r 1
-m RFC1213-MIB

       }

define service{

       use                  generic-service      ; Inherit values from a
template

       host_name            LAB-C Switch

       service_description  Port 15 Link Status

       check_command        check_snmp!-C public -o ifOperStatus.15 -r 1
-m RFC1213-MIB

 

 

as I understand from the plugin explanations, the Nagios should identify
that any reply that is other than "1" should indicate an alarm.

 

 

I am using:

Nagios Core 3.3.1

Plugins pack 1.4.15

CentOS Linux

Net-SNMP and Net-SNMP-Utils are installed.

 

 

Your assistance is highly appreciated.

 

Thanks,

 

Kfir Yogev,

 

LES 711 Engineering and Support - Mobile Satellite Services - Station
711 

RRsat - Global Communications Network Ltd. (NASDAQ RRST)

www.rrsat.com  I  www.station711.com 

Mailto: Kfir.y at rrsat.com

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120416/e6daea24/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 23982 bytes
Desc: image003.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120416/e6daea24/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 2749 bytes
Desc: image004.gif
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120416/e6daea24/attachment.gif>
-------------- next part --------------
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list