[Nagiosplug-help] check_snmp_int.pl on a cisco 6500

Rossella Mariotti-Jones rossella at chemeketa.edu
Wed Dec 8 00:19:51 CET 2004


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.

Rossella Mariotti-Jones
Network Analyst, CCNA
Chemeketa Community College / IT
T 503 589 7775
F 503 399 4898
E rossella at chemeketa.edu
www.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 
> like this:

> [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
.1.3.6.1.2.1.2.2.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.

hth

Jan



-------------------------------------------------------
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