Cisco

Cisco Switches and routers

Description:

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)

Current Version

Last Release Date

June 11, 2009

Compatible With


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!
Project Files
Project Notes
Please install perldoc package to read examples and for more information: perldoc check_cisco.pl
Reviews (8) Add a Review
Check_cisco.pl not working at all
by tgrassi55, November 30, 2018
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
Helpful? Yes  No 
how to add Permissions???
by AntonSP, October 31, 2018
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))
Helpful? Yes  No 
check_cisco.pl
by murali, March 31, 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.
Helpful? Yes  No 
Update SNMPv3
by rjmontenegro, July 31, 2017
Hi TonyPnode.
Can share the script with the SNMP v3 changes?
Thanks
Helpful? Yes  No 
SNMP V3 Support
by TonyPnode, June 30, 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.
Helpful? Yes  No 
monitor cisco asr 9010 router
by phyo, April 30, 2014
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.
Helpful? Yes  No 
Nice plugin
by dasgeek, February 28, 2013
Nice plugin is it possible to convert the output from octets to MB or Mb?
0 of 1 found this review helpful.
Helpful? Yes  No 1
Worked Perfectly
by nishith, July 31, 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
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.3 (9)
Favorites
3
Views
157,681