Monitoring Interfaces with Nagios

Bernhard Albler albler-b at chello.at
Thu Sep 5 11:42:00 CEST 2002


> Is there any possibility to monitor, for example the PORTs of a switch or
a
> router with Nagios?
> I only need the Status of the different Ports, so that it is possible to
> say: Port 6 of the HPswitch2524 is down since ....(or Port 6 is unused
> since....)
Well, the probably easiest way to do this is via SNMP.
There are already 2 plugins that do pretty much exactly what you want
check_ifoperstatus, which allows youm to check the status of a single
interface
it uses(suprise) the ifoperstatus OID (.1.3.6.1.2.1.2.2.1.8. + the Index of
the Interface)
syntax:
check_ifoperstatus -H $HOST -C $COMMUNITY -d $ifdescription(name of the
Interface)
Instead of -d you can use -k and specify the interface index
directly(check_ifoperstatus --help for more)

The other plugin check_ifstatus checks the status of all Interfaces on a
device
hth
Bernhard
--
"When the going gets weird, the weird turn pro"--Raoul Duke



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list