[Nagiosplug-help] check_snmp_int.pl on a cisco 6500
ae at op5.se
Tue Dec 7 15:08:01 CET 2004
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.
Possibly so, but you should most likely send your questions to
nagios-users at lists.sourceforge.net instead, as this is a configuration
> Rossella Mariotti-Jones
> Network Analyst, CCNA
> Chemeketa Community College / IT
> T 503 589 7775
> F 503 399 4898
> E rossella at chemeketa.edu
> -----Original Message-----
> From: Jan Scholten [mailto:Jan.Scholten at iconz.net]
> Sent: Tuesday, December 07, 2004 1:04 PM
> To: Rossella Mariotti-Jones
> Cc: nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] check_snmp_int.pl on a cisco 6500
> Rossella Mariotti-Jones schrieb:
>>Hello, I'm very new at this and I need some help with snmp check
>>commands if possible.
>>I'm trying to run the command to see if it works from my command line
>>[root at ccc-nagios plugins]# ./check_snmp_int.pl -H x.x.x.x -C password
>>And all I get is this:
>>Usage: ./check_snmp_int.pl [-v] -H <host> -C <snmp_community> | (-l
>>login -w passwd) [-p <port>] -n <name in desc_oid> [-i] [-a] [-r]
>>[-f[e]] [-t <timeout>] [-V]
> From the output you can see that you need to provide a "-n <name in
> desc_oid>" Check the help for
> more info.
> If you only want to check if a specific interface is up a check like:
> $USER1$/check_snmp -H $HOSTADDRESS$ -C $USER3$ -P 1 -o
> .22.214.171.124.126.96.36.199.1.8.X -w 1:1 -c 1:1
> Replace X with your Port to check (is the numeric oid for
> IF-MIB::ifOperStatus.X) it will return ok
> if the port is up and critical if the port is down.
>>Can anybody help? Thanks a lot.
> 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.
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
More information about the Help