check_snmp_iface new plugin
primero
primero at fastwebnet.it
Fri Dec 10 16:07:19 CET 2004
Hi all ML.
I wrote a small plugin for checking interface status by snmp.
The main advantage , and the reason for what i wrote it, is that with
this plugin u can specify directly the interface name (ethX on Linux,
FastEthernet0/0 on Cisco IOS .... ecc ...).
It is written in python so requirements are:
On Nagios Monitor:
Python interpreter > 2.2
Optik python libs = 1.4
net-snmp packet installed
On Monitored Host
snmpd daemon running.
usage is very simple:
in checkcommands.cfg specify :
define command{
command_name check_snmp_iface
command_line $USER1$/check_snmp_iface -H $HOSTADDRESS$ -C
$ARG1$ -i $ARG2$
}
Options are as usual "-H" is the ip address of target host, "-C" is
community , "-i" is interface name.
script is attached.
Feedbacks are welcome ... :)
bye
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_snmp_iface
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041210/d01dbea6/attachment.ksh>
More information about the Users
mailing list