Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
OpenBSD 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!
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
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
Reviews (0)
Be the first to review this listing!