Home Directory Plugins Hardware Network Gear Cisco Cisco Switches and routers

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Cisco Switches and routers

Rating
9 votes
Favoured:
3
Hits
157612
Files:
FileDescription
check_cisco.plcheck_cisco.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Generic snmp v1 plugin to perform checks on any Cisco switches/routers. For exemple checks like Vlan1, Po1, Gi1/0/1, Fa0, ATM0, FastEthernet0/1 etc ...are supported (SNMP package is required)
Please install perldoc package to read examples and for more information: perldoc check_cisco.pl
Reviews (8)
Running Nagios Core 4.3.4
Cisco 3750 switch
When I run this from command line
/usr/local/nagios/libexec/check_cisco.pl -h 10.2.8.4 -c public -i "GigabitEthernet1/0/21" -s up
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IF-MIB): At line 0 in (none)
IF-MIB::ifDescr: Unknown Object Identifier
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IF-MIB): At line 0 in (none)
IF-MIB::ifName: Unknown Object Identifier
Interface not found : please check your syntax for this device

Nagios run on Ubuntu 16.04.1 LTS

This is my first SNMP check on Nagios.

On Ubuntu I can run SNMPWALK
snmpwalk -v 1 -c public cisco3750 1.3.6.1.2.1.2
or
snmpwalk -v 2c -c public cisco3750 1.3.6.1.2.1.2

Both produce same output from the switch

What am I missing?

Thank you
Return code of 13 is out of bounds : (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_cisco.pl, ...) failed. errno is 13: Permission denied))
bymurali, March 27, 2018
is there any updated version of this plugin?
is it possible to convert the output from octets to MB or Mb?
Because the performance data didnt getting output so ther pnp4nagios not able to plot graph.
byrjmontenegro, July 19, 2017
Hi TonyPnode.
Can share the script with the SNMP v3 changes?
Thanks
byTonyPnode, June 20, 2017
From what I could tell, this works great, however, it didn't have SNMPv3 support. I modified the script by adding in the pertinent v3 requirements (level, username, auth method, auth pass, priv method, and priv pass), and updated the walks and the gets. It works perfect for me now. I will clean up what I have and post it soon.
I used this to monitor Cisco ASR9010 CPU,memory, fan, temp, etc.
For CPU is ok. But when i monitor memory, the free memory is only 1%. then i contact to network guy. he check from CLI and output shows,
Physical Memory: 6144M total (4120M available)
Application Memory : 5887M (4120M available)
Image: 63M (bootram: 63M)
Reserved: 128M, IOMem: 64K, flashfsys: 0
Total shared window: 41M
Is there anything I need to change for memory?
For Fan, the output show, "Fans: OK - 0 Fans are running all good | total=0 err=0"
For temp, the output show
"[root@nagios01 libexec]# ./check_c4510.pl -H 10.110.40.23 -C nagios -t temp -w 45 -c 55
The switch 10.110.40.23 can't report temperature via SNMP
Syntax Error! "
Let me know what should i change?

Thanks for your plugin.
bydasgeek, February 25, 2013
0 of 1 people found this review helpful
Nice plugin is it possible to convert the output from octets to MB or Mb?
bynishith, July 10, 2012
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