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

OpenBSD Memory

Rating
0 votes
Favoured:
0
Hits
94121
Files:
FileDescription
check_openbsd_mem.shVersion 0.2 - 2008-12-31
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks memory usage on OpenBSD.
Description


The OpenBSD Memory Plugin for Nagios checks the used/free/total memory and can optional output performance data.

It's a shell script and use the command line tool top in batch mode to get the current memory usage.

You can set warning and critical values (integer/percentage). If the free memory under the warning value, the plugin exit with a STATE_WARNING. If the free memory under the critical value the plugin exit with a STATE_CRITICAL.
Install


Tested with Nagios 3 on OpenBSD 4.2, but it might be working also in Nagios 1 and 2 and other OpenBSD versions.

* Download the script.
* If the nagios-plugin package isn't already installed, install it.
* Copy the script to /usr/local/libexec/nagios/.
* Set the executable flag chmod +x /usr/local/libexec/nagios/check_openbsd_mem.sh.

Example usage


/usr/local/libexec/nagios/check_openbsd_mem.sh -w 15% -c 10% -p

Will produce following output:

OK - Free: 856M Used: 145M Total: 1001M | 856;145;1001;150;100