Operating Systems

check_snmp_memory – Monitoring the memory

Description:

Checks the memory (physical and virtual) usage for Windows, Solaris, Linux servers, Cisco firewalls and MacAffee WebGateway
By Martin Fuerstenau

Current Version

1.1

Last Release Date

2013-12-18

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

License

Other


Project Files
Project Notes
Purpose and features of the program: Checks the memory (physical and virtual) usage for Windows, Solaris, Linux servers, Cisco firewalls and MacAffee WebGateway Author: Martin Fuerstenau, Oce Printing Systems martin.fuerstenau_at_oce.com Date: 14 Jul 2011 Setting a threshold for physical memory doesn't make much sense in modern operating systems. But the virtual momory should be monitored. - Windows: Physical and virtual memory is monitored. Threshold (and alarm) for virtual memory. - Linux: Physical memory, swap space and momory buffers is monitored. Threshold (and alarm) for swap space. - Solaris: This is a little bit tricky. The swapfs (virtual memory) uses a part of the physical memory and the swap space. With most memory plugins you only will have the swap space monitored. This plugin monitors the virtual monitor physical momory, virtual memory and swapspace. If you look for you swapspace with swap -l you will see the use of your swapfs and not of the swapspace. Threshold (and alarm) is based on virtual memory (swapfs) ./check_snmp_memory -h check_snmp_memory,Version 1.1 Copyright (c) 2011 Martin Fuerstenau - Oce Printing Systems Usage: check_snmp_memory -H [-C community] [--cisco] -w -c or Usage: check_snmp_memory -h for help. -H, --hostname=HOST Name or IP address of host to check -C, --community=community SNMP community (default public) -v, --snmpversion=snmpversion Version of the SNMP protocol. At present version 1 or 2c -p, --portsnmpversion=snmpversion Version of the SNMP protocol. At present version 1 or 2c -w, --warning=threshold Warning threshold of memory usage in percent for virtual memory (MS Windows systems), swap space (Linux systems) or swapfs (Solaris) -c, --critical=threshold Critical threshold of memory usage in percent for virtual memory (MS Windows systems) or swap space (Unix/Linux systems) --cisco It is a cisco firewall and not a standard Linux system -h, --help Short help message
Reviews (1) Add a Review
works great!
by dangtran09, August 31, 2015

this works perfectly for my debian 7.8 checking for windows 2008 server. however, when i loaded nagios on deb 8.1, and also checking on the same server, i'm getting errors: Use of uninitialized value $os in substitution (s///) at ./check_snmp_memory line 251. Use of uninitialized value $os in substitution (s///) at ./check_snmp_memory line 252. Use of uninitialized value $os in substitution (s///) at ./check_snmp_memory line 253. Use of uninitialized value $os in string eq at ./check_snmp_memory line 259. Use of uninitialized value $os in string eq at ./check_snmp_memory line 259. Use of uninitialized value $os in string eq at ./check_snmp_memory line 430. Use of uninitialized value $os in string eq at ./check_snmp_memory line 540.



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
5 (2)
Favorites
0
Views
42,293