Home Directory Plugins System Metrics Memory Check used Swap on Linux

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

Check used Swap on Linux

Rating
0 votes
Favoured:
1
Current Version
1.0
Last Release Date
2011-11-03
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
90028
Files:
FileDescription
check_swap.shshell script
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
A simple shell script that checks the usage of swap in a Linux System.

Intention was, that a system should never swap anything, it was not enough to watch free swap.

Output includes performance data for pnp4nagios.
# Swap memory usage on a machine using free
#
# No machine should never ever swap anything! (following the old saw: "Memory is RAM!")
#
# usage: "check_swap -w WARNING(INTEGER in MBytes) -c CRITICAL(INTEGER in MBytes)"
#
# WARNING < CRIT