Nagios::Plugin::CheckHost - Nagios plugin for checking checking availability of hosts with http://Check-Host.net.
Command line usage:
checkhost_http -H metacpan.org checkhost_ping -H metacpan.org
Usefull Nagios commands are available in nagios-checkhost.cfg. You need to copy it to /etc/nagios-plugins/config/. Next example show usage in Nagios:
nagios-checkhost.cfg
/etc/nagios-plugins/config/
define service { service_description HTTP CheckHost host_name my.host.com check_command checkhost_http use generic-service } define service { service_description Ping CheckHost host_name my.host.com check_command checkhost_ping use generic-service }
http://Check-Host.net
Sergey Zasenko, undef@cpan.org.
undef@cpan.org
Copyright (C) 2016, Sergey Zasenko.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
To install Nagios::Plugin::CheckHost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nagios::Plugin::CheckHost
CPAN shell
perl -MCPAN -e shell install Nagios::Plugin::CheckHost
For more information on module installation, please visit the detailed CPAN module installation guide.