$Id: README_check_solaris_swap.txt,v 1.1 2008/08/28 14:47:01 kivimaki Exp $

Nagios plugin to check free swap space on Solaris
-------------------------------------------------
Hannu Kivimki / CSC - Scientific Computing Ltd.

Description:

    This Nagios plugin checks free swap space on Solaris.
    It parses output from /usr/sbin/swap -s unlike some plugins
    which rely on /usr/sbin/df (and thus ignore swap files
    completely).

    Example:

    # check_solaris_swap.pl -w 20 -c 10
    SWAP WARNING - 17% (1926 of 11328 MB) free|PCT=17 AVAIL=1926 TOTAL=11328


Installation:

    1. Copy check_solaris_swap.pl to NAGIOS_HOME/libexec
       and set file permissions (execute for Nagios user).

    2. Test plugin:

       # NAGIOS_HOME/libexec/check_solaris_swap.pl -h
       # NAGIOS_HOME/libexec/check_solaris_swap.pl -w <1-100> -c <1-100>

    3. Configure swap checks in Nagios (and NRPE) settings.


Changes:

    Revision: 1.1
        - first revision published on Nagios Exchange (http://www.nagiosexchange.org)

    Revision: 1.2
        - added performance data
        - some minor internal tweaks with variable naming etc.
