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

Check Cisco Catalyst

Rating
15 votes
Favoured:
8
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
136877
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This is a script to monitor Cisco Catalyst switches via SNMP.
This is a script to monitor Cisco Catalyst switches via SNMP.
It will do the following Following:
* Temperature
* Fan Fail
* Power Supply Fail
* CPU Load
* Memory
* Module Health
* Free eth interfaces for X days
* Interface Operation Stat

I hope you will find this useful as I did, But I dont guarantee it will work for you

+ Fixed temperature check of certain switches
Reviews (8)
The script has been running perfectly on several Cisco 3750 for a month.
All that time I have been trying to obtain the same information via SNMP from a set of Cisco ESW520 switches, with no success. All interfaces have the same name "Ethernet Interface" and the script returns "Remote device does not return data for XX" when asking for PS, CPU or memory.
Any clue on how to obtain information in Nagios from a ESW520? The command snmpget -v 2c -c CCC IP 1.3.6.1.2.1.2.2.1.8.51 will return the required info, but I don't know how to include that in Nagios.
byj2dapo, July 21, 2015
Works well with:
routers 19xx
routers 29xx - failure on installed redundant PS not failed PS.
Catalyst 3650
Catalyst 4500 - reports fan/PS failure on PS 2 on stack (results in PS/Fan failure)
Router ISR44xx - reports device can't report temp.

vencapany: memory is free so critical should be less than warning. i.e. 20 free vs 10 free.
byvencapany, June 1, 2015
Hi,

this plugin is amazing and working well! But I have one problem. When I give this command:
./check_cisco_status.pl -H 192.168.1.2 -C public -t mem -w 10 -c 20
Plugin return:
Warning can't be smaller then Critical: 10
Very easy to use, worked right away on an OSSIM box. Does everything it says and the syntax is simple, no need for running after OIDs just to know the CPU Usage and other simple hardware information... Excellent!
byregisu, May 14, 2013
Hello,

Thank you for this excellent plugin!

I only saw one problem with counting free memory percentage for values like 800KB or something less. I think that you need to change Bytes to Mega Bytes after calculating percentage value.
So I moved line:
my $mem_free_perc = int(($mem_free / $mem_total) * 100);
above:
$mem_used = int($mem_used / 1024 / 1024);
$mem_free = int($mem_free / 1024 / 1024);
$mem_total = int($mem_total / 1024 / 1024);
And now it works perfect!
bychinnappan, September 25, 2012
Please Posted the command.cfg and service sample file with diffrent SNMP community pls
bynishith, August 4, 2012
1 of 1 people found this review helpful
Using this plugin, i am able to monitor all the required STATE of cisco router & switches. Simply superb.
byadmurat, November 10, 2011
I have modify some of rows


if("$check_type" ne "temp") {
if($warn > $crit and "$check_type" ne "freeint" and "$check_type" ne "mem") {
print "Warning can't be larger then Critical: $warn > $crit\n";
FSyntaxError();
} elsif($warn ritical: $warn = $warn) {
$stat = 0;
$msg = "Memory: OK - Free Memory $mem_free_prec%";
} elsif($mem_free_prec $crit) {
$stat = 1;
$msg = "Memory: Warn - Free Memory $mem_free_prec %";
} elsif($mem_free_prec ing for
free memory perc !please valide the change
Owner's reply

I've corrected this issue =)