check_ping
pingを使って応答をチェックするプラグイン。
対象
リモート (or ローカル)
アーカイブ内での位置
plugins/check_ping
実行
500ms or 10% packet lossでWARNING、1000ms or 25% packet lossでCRITICAL。
/usr/local/nagios/libexec/check_ping -H 192.168.0.2 -w 500,10% -c 1000,25%
checkcommands.cfgでの定義
vi /usr/local/nagios/etc/checkcommands.cfg
# 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ }
サービスの定義
define service{ use generic-service host_name hoge service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 notification_interval 240 notification_period 24x7 notification_options c,r check_command check_ping!500,10%!1000,25% contact_groups linux-admins }