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

snmp_cisco_info

Current Version
3.1
Last Release Date
2016-08-26
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Owner
License
Apache
Hits
11775
Files:
FileDescription
snmp_cisco_info.shsnmp_cisco_info.sh version 2.0
snmp_cisco_info.shsnmp_cisco_info.sh version 2.1
snmp_cisco_info.shsnmp_cisco_info.sh version 3.1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This is a plugin for presenting information about Cisco devices with SNMP.

The plugin displays:
hostname, model, IOS version, serial number, snmp location, snmp contact"
A script for presenting information about Cisco devices with SNMP.

The script utputs a string with:
hostname,
model,
IOS version,
serial nr.,
location,
contact"
(The formatting of this string can easily be modified at the bottom of this script).
The string can then be used by some external system or just as information as is.
Logical devices in a stack or cluster configuration will output one row of information per physical device.

This script was wtitten for Op5 in order to populate a database for device inventory consisting of more than 2000 Cisco network devices.


USAGE:
Add this script as a service check in Op5/Nagios for a Cisco device.
Apply the SNMP authentication information as variables to the service.
The check will always return OK, even if the host is down.

The script is a shell script that uses snmpget.
It should be fairly portable.

Tested with: 6500, ASR and other routers, different Catalyst, Nexus...

Version history:
2.1 2016-06-08 Replaced the OID for Nexus model.
2.0 2015-10-27 Cleanups, more error handling and support for C3850
1.0 2015-08-19 Initial public release with some added comments and a new name.
2015-06-08 Added support for stacks bigger than 4
2015-05-22 Added support for some old ASR version.
2014-11-07 Updated the logic for model 4500.
2014-11-05 Added Cisco 4500 VSS logic to get serial of switch2.
2014-10-23 Fixed a bug with Nexus serial.
2014-10-14 Added section for Cisco WS-6500, and handling of SNMP error.
2014-04-16 First version.
Reviews (1)
byiland, October 20, 2015
Since im very new to this all nagios thing, how to i install this? im running Nagios Core 4.1.1 and so far i am able to monitor ping only.
Owner's reply

You need to enable SNMP on your Cisco devices. Either SNMP version 3, 2c or 1.

Then copy this script to your Nagios Core server and add it as a service to your Cisco devices in Nagios.

I recommend reading this:
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/toc.html