[Nagiosplug-help] check_snmp_int.pl on a cisco 6500
    Jan Scholten 
    Jan.Scholten at iconz.net
       
    Tue Dec  7 13:23:48 CET 2004
    
    
  
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
    
    
More information about the Help
mailing list