Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_snmp_cisco_memutil.pl
2.1.1
2012-11-14
- Nagios 3.x
GPL
50904
File | Description |
---|---|
check_snmp_cisco_memutil.pl | Check Cisco Device Memory |
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!
Shows Total, Used & Free Memory on many Cisco devices.
# Added -f Perfdata output. Results used in Splunk for Nagios.
# Changed Alert levels to warnings on SNMP related issues.
--------------------------------------------------------------------
check_snmp_cisco_memutil v2.1.1
Memory utilization on Cisco devices
Usage: check_snmp_cisco_memutil -H -c [...]
Options: -H Hostname or IP address
-C Community (default is public)
-w Warning threshold (as %)
-c Critical threshold (as %)
-f Show Perfdata
--------------------------------------------------------------------
# Changed Alert levels to warnings on SNMP related issues.
--------------------------------------------------------------------
check_snmp_cisco_memutil v2.1.1
Memory utilization on Cisco devices
Usage: check_snmp_cisco_memutil -H
Options: -H Hostname or IP address
-C Community (default is public)
-w Warning threshold (as %)
-c Critical threshold (as %)
-f Show Perfdata
--------------------------------------------------------------------
Reviews (3)
bynishith, November 15, 2022
This plugin is found working properly. See below command.
===================================
./check_snmp_cisco_memutil.pl -H 192.168.1.11 -C nishith007 -w 75% -c 95% -f
Status is OK - MEMORY: total: 1348.71 MB, used: 257.94 MB (19%), free: 1090.77 MB | MemTotal=1348.71, MemUsed=257.94, MemFree=1090.77
===================================
Here, "nishith007" is the community name & "192.1681.11" is the ciscp switch ip address.
Works with SNMP v1 & v2 both.
===================================
./check_snmp_cisco_memutil.pl -H 192.168.1.11 -C nishith007 -w 75% -c 95% -f
Status is OK - MEMORY: total: 1348.71 MB, used: 257.94 MB (19%), free: 1090.77 MB | MemTotal=1348.71, MemUsed=257.94, MemFree=1090.77
===================================
Here, "nishith007" is the community name & "192.1681.11" is the ciscp switch ip address.
Works with SNMP v1 & v2 both.
bylizaoreo, July 24, 2015
Did what I needed it to with a slight modification for PNP4Nagios support. For whatever reason PNP4Nagios wouldn't graph the data for me straight up, so I modified line 156 to the below instead and it now graphs. The only issue is it doesn't seem to be setting the max right because PNP4Nagios has the top just a little above the actual (IE, instead of showing 300MB as the top, it shows 40MB with 37MB used). Not a big concern right now, probably something I've done wrong, but I'm quite happen with it now.
$temp = sprintf 'MEMORY: total: %.2f MB, used: %.2f MB (%.0f%%), free: %.2f MB | MemUsed=%2$d;%5$d;%6$d;0;%1$d', ( $memtotal / 1000000 ), ( $mem5minused / 1000000 ), $mempcused, ( $mem5minfree / 1000000 ), $warning, $critical;
$temp = sprintf 'MEMORY: total: %.2f MB, used: %.2f MB (%.0f%%), free: %.2f MB | MemUsed=%2$d;%5$d;%6$d;0;%1$d', ( $memtotal / 1000000 ), ( $mem5minused / 1000000 ), $mempcused, ( $mem5minfree / 1000000 ), $warning, $critical;