check_ifoperstatus option -n ifName not working as expected
James Affeld
jamesaffeld at yahoo.com
Thu Nov 2 23:22:19 CET 2006
I'm running check_ifoperstatus to check the condition of interfaces on a Cisco 6009 running CatOS software.
I'm specifing the SNMP IfIndex value as recommended. But since the IfIndex value can change as the switch is rebooted, I'm running -I (agent supports IFMib ifXTable) and -n (IfName) to verify that I have the correct interface. When I use -n, I must supply an ifName, but it doesn't matter what ifName I supply. It comes back with the current ifName for that IfIndex and doesn't error out if that ifName doesn't match what I supply. Why require a parameter for -n if the parameter doesn't affect the return condition?
root at silmec2:/usr/local/nagios/libexec# ./check_ifoperstatus -H 10.139.7.1 -C REDACTED -k 351 -I -n 4/44
CRITICAL: Interface 9/6 - (index 351) is down.
root at silmec2:/usr/local/nagios/libexec# ./check_ifoperstatus -H 10.139.7.1 -C REDACTED -k 347 -I -n 4/44
OK: Interface 9/2 - (index 347) is up.
Am I missing something, or is check_ifoperstatus ?
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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