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_rate

Current Version
1.0
Last Release Date
2015-02-09
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
Owner
License
MIT
Hits
10098
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!
check_swap_rate
Instantly check swapin/swapout activity (pages/s)
A check should be instant.

In order to avoid waiting several seconds to get the deritative of pswpin pswpout from vmstat, this check stores the current state in a file. The result is instant (no hang).

Instructions : just run "make" to build.

Check also displays performance data.

Usage :

$ ./check_swap_rate -h
Usage: ./check_swap_rate [-i INTERVAL] [-w W_THRESHOLD] [-c C_THRESHOLD] [-h] [-V]

-i INTERVAL interval in seconds (default 60)
-c C_THRESHOLD number of pages for critical threshold (default 60)
-w W_THRESHOLD number of pages for warning threshold (default 30)
-h this help
-V version


Examples:
./check_swap_rate -i 2 -c 2 -w 1 # critical: 1 page/s warning: 0.5 page/s
./check_swap_rate -i 600 -c 1200 -w 300 # critical: 2 page/s warning: 0.5 page/s