swap.monitor - monitor swap space usage via SNMP
swap.monitor [ --community=community ] [ --percent=p ] host [...]
SNMP community (default=public)
The monitor is deemed to fail if swap space utilisation is >= p (default=75).
Space separated list of hosts to monitor.
swap.monitor monitors swap space usage via the UCSD SNMP agent. It is designed to be used as a monitor for the mon package. As such if any host's swap utilisation is >= a particular percentage it will return 1 and output the hostnames that failed and the percentage of the swap in use. If all hosts meet the utilisation criteria 0 is returned.
The swap space statistics must be collected from an extension to the SNMP agent named 'swap' which returns the percentage of swap space in use.
The swap statistics should really be collected from a MIB but there didn't seem to be one which worked for Linux and Solaris.
Paul Sharpe <firstname.lastname@example.org>
Copyright (c) 1998 Paul Sharpe. England. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.