Random Project

Worked Perfectly

Since many weeks,i was trying to get plugin to monitor “individual port of Cisco 2960 & 3560” switches. Finally, I found this plugin which satisfied me.

Below is the configuration.

In “commands.cfg” file

define command{
command_name check_cisco
command_line $USER1$/check_cisco.pl -H $HOSTADDRESS$ $USER7$ -n $ARG1$ $ARG2$
}

In “switch.cfg” OR your Nagios configuration file for cisco switch,

define service{
use generic-service ; Inherit values from a template
host_name Cisco 2960 Switch_10
service_description Check_Interface_Port_0/1
check_command check_cisco!-C cis2960 -i GigabitEthernet0/1
}

That’s it.

Don’t forget to copy this plugin in “/usr/local/nagios/libexec/” directory