check_real の変更点
RTSPによるストリーミングサーバをチェックするプラグイン。
*対象
リモート (or ローカル)
*アーカイブ内での位置
plugins/check_real
*実行
example.com/foo/bar.rm に~
1秒で接続できないと WARNING、5秒で接続できないと CRITICAL。
/usr/local/nagios/libexec/check_real -H example.com -u /foo/bar.rm -c 1 -w 5
*checkcommands.cfgでの定義
vi /usr/local/nagios/etc/checkcommands.cfg
>
# 'check_real' command definition
define command{
command_name check_real
command_line $USER1$/check_real -H $HOSTADDRESS$ -u $ARG1$ -w $ARG2$ -c $ARG3$
}
*サービスの定義
define service{
use generic-service
host_name hoge
service_description HTTP
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_real!/foo/bar.rm!1!5
contact_groups linux-admins
}
*Amazon
#amazon(4774145823,left)
#amazon(4774165433,left)
#amazon(4774178659,left)