[Nagiosplug-help] check_snmp_int.pl on a cisco 6500
nagios at mm.quex.org
nagios at mm.quex.org
Wed Dec 8 09:20:27 CET 2004
On Tue, Dec 07, 2004 at 03:19:51PM -0800, Rossella Mariotti-Jones wrote:
> Thanks for replying so fast. What I'd like to do exactly is to monitor
> (and get and alert) when an interface goes down or comes up.
>
> I've played a little with the switches and I found that this works:
>
> [root at ccc-nagios plugins]# ./check_snmp_int.pl -H 10.0.0.X -C string -n
>
> 1 :DOWN, A :UP, 14:DOWN, CPU:UP, 20:UP, 16:DOWN, 18:DOWN, 12:DOWN,
> 17:DOWN, PortChannel:DOWN, 3 :DOWN, AUI:UP, 2 :DOWN, 19:DOWN, 22:DOWN, 7
> :DOWN, 9 :DOWN, 13:DOWN, 23:DOWN, 6 :DOWN, 4 :DOWN, B :DOWN, 10:UP,
> 15:DOWN, 21:UP, 8 :DOWN, 24:DOWN, 5 :DOWN, 11:UP: 22 int NOK : CRITICAL
>
> Now, how do I include it into the files and which files? I'm guessing
> probably service.cfg and checkcommands.cfg? Am I on the right track
> considering my goal? Thanks.
If you want an alert EVERY time an interface goes up/down, you'll
need to configure the device to send an SNMP trap to a host.
Otherwise, you can poll it at whatever interval you feel is suitable,
but you won't see if an interface drops out and comes back inside that
interval (or comes up and drops out again).
If you go the polling route, you'll need to make a wrapper to
remember the status of the interfaces during the last poll, and
compare it to the current poll. If they've changed, return an
alert status.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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