check_snmp
Jones, Stuart
Stuart.Jones at health.wa.gov.au
Tue Dec 21 06:40:11 CET 2010
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:jorgeaaq at hotmail.com]
Sent: Friday, 17 December 2010 10:16 AM
To: nagios-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101221/862fbd11/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- 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