Swap space is also checked by using the &get_swap() function
which returns a message and a percentage of total space space used. This
percentage is checked against the $DFWARN{'page'} and $DFCRIT{'page'}
entry levels to generate an appropriate yellow or red status.
DETALED MESSAGE FIELD
The output of the df command and the message returned by the
&get_swap
function are returned.
@DFIGNOREFILES
A list of regular expression strings that are matched against the raw file system names. If matched, then that file system is ignored. For example, having ``:'' in this list will cause NFS file system mounts to be ignored.%DFWARN, %DFCRIT
A hash of file systems (or the word ``ALL''), and the percentage that should trigger a problem (%DFWARN triggers warnings - yellow, and %DFCRIT triggers alerts - red). If a file system is not explicitly listed in this hash then it will fall back to the value of the ``ALL'' entry.$DF
An OS specific variable that contains the path to the df command and paramters to be run to get file systems used information.&get_swap()
An OS specific function that get the total space space usage information. It returns two paramaters: message - a strings containing the swap usage information to be returned in the detail message field of the status message, and total_swap - a percentage of the total amount of space space in use.
Stephen L Johnson (stephen.johnson@mail.state.ar.us)
or (sjohnson@monsters.org),
Unix System Administator, DIS - State of Arkansas