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

check_swap_osx

Rating
0 votes
Favoured:
0
Current Version
1.1
Last Release Date
2014-03-02
Compatible With
  • Nagios 3.x
License
GPL
Hits
24116
Files:
FileDescription
check_swap_osxcheck_swap_osx
Nagios CSP

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!
This script checks swap space available on the machine it is run on. It outputs the percentage of free space or number of bytes free, depending on input parameters.
This script checks swap space available on the machine it is run on. It outputs the percentage of free space or number of bytes free, depending on input parameters.

Usage: "check_swap_osx [-h] [-V] [-v] -w WARNING(INTEGER) -c CRITICAL(INTEGER)"

WARNING > CRIT

WARNING and CRIT are measured in percentage or bytes

Returns the nagios native status codes:

Nagios Status

0 = OK (SWAP FREE more than WARNING)
1 = WARNING (SWAP FREE between WARNING AND CRITICAL)
2 = CRITICAL (SWAP FREE less than CRITICAL)
3 = UNKNOWN (Wrong usage)

Tested on:
- Mac OS X 10.9.2

Used the check_swap_activity plugin, by Shu Wei Tan (webblazers@yahoo.com), as an example.