Hello Jorge,

 

Here is an example of my Nagios - Cisco switch port status - monitor
entry, see if it helps you:

 

define service{

       use                         generic-service      

       host_name                   Site-1 rtr Lo0 interface - r01c37  

       service_description          Interface Fa0/1 connection to
primary c6504 LAN switch sr002-c6504 - Link Status

       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

       }

 

Rgds, Stuart

________________________________

From: Jorge Arenas [mailto:jorge...@hotmail.com] 
Sent: Friday, 17 December 2010 10:16 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_snmp

 

Hi:
 
i just install nagios and I am following the basic guide in the site to
monitor a switch 
 
i create the file and work well, but 
 
all switch ports are reported in OK status always 
 
i check the output ok the command:
 
check_snmp -C public -H switch -r 1  .... etc
 
and even when the port reports status of 2 ( down) the "-r 1" parameter
is not working and the report send "SNMP OK" for down ports 
 
 
I read the instruccions but i can not find any information regarding the
-r (regex) parameter
 
I Found a workaround changing the "-r 1"  for the "-c 1:1" 
 
but I do not know if the documentation in the site is out-dated or i am
making something wrong
 
 
any ideas 
 
thanks in advance
 
Jorge Arenas
CSA Mexico

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to