Wubot::Plugin::Uptime - monitor system load
version 0.2_003
~/wubot/config/plugins/Uptime/myhostname.yaml --- command: /usr/bin/uptime delay: 1m warning_load: 2.0 critical_load: 3.0
Monitors the system load by parsing the output of the 'uptime' command. For example, if the uptime command produced this output:
12:06 up 4 days, 14:03, 15 users, load averages: 0.80 0.81 0.67
Then results will be sent in a message containing:
load01: 0.80 load05: 0.81 load10: 0.67 status: ok
The 'status' field will be set to 'ok' if the load 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 1-minute load value exceeds the warning_load or critical_load threshold, then the message will contain a subject such as:
warning: load over last 1 minute is {$load} critical: load over last 1 minute is {$load}
This plugin can be used to monitor load on a remote system that is accessible by ssh. Simply set the command like so:
--- command: ssh somehost /bin/uptime
- http://www.geekfarm.org/wu/wubot/Uptime-navi-daily.png
The standard monitor validate_config() method.
The standard monitor check() method.
To install Wubot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wubot
CPAN shell
perl -MCPAN -e shell install Wubot
For more information on module installation, please visit the detailed CPAN module installation guide.