App::Wubot::Plugin::DiskSpace - monitor disk space
version 0.3.6
~/wubot/config/plugins/DiskSpace/myhostname.yaml --- command: df -k critical_percent: 95 warning_percent: 90 skip: '/dev': 1 delay: 15m
Monitors disk space by parsing the output of 'df -k'.
For each mounted filesystem that is not matched by one of the 'skip' entries, a message will be sent containing:
filesystem: /mount/point percent: percent used
The message will also contain a 'status' field that will be set to 'ok' if the percent utilization is less than the warning threshold, 'warning' if it is between the warning and critical thresholds, or 'critical' if it is above the critical threshold.
If the filesystem's percent utilization exceeds the warning_percent or critical_percent, then the message will contain a subject such as:
warning: disk use on /mount/point is 93% critical: disk use on /mount/point is 99%
This plugin can be used to monitor disk space on a remote system that is accessible by ssh. Simply set the command like so:
--- command: ssh somehost df -k
The standard monitor validate_config() method.
The standard monitor check() method.
To install App::Wubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Wubot
CPAN shell
perl -MCPAN -e shell install App::Wubot
For more information on module installation, please visit the detailed CPAN module installation guide.