Top/Nagios/プラグイン/check_dummy

check_dummyはてなブックマーク

特定のステータスを返すプラグイン。

対象

なし

アーカイブ内での位置

plugins/check_dummy

実行

OKを返す。

/usr/local/nagios/libexec/check_dummy 0
引数ステータス
-1UNKNOWN
0OK
1WARNING
2CRITICAL

checkcommands.cfgでの定義

vi /usr/local/nagios/etc/checkcommands.cfg
# 'check_dummy' command definition
define command{
        command_name    check_dummy
        command_line    $USER1$/check_dummy $ARG1$
        }

サービスの定義

define service{
        use                             generic-service
        host_name                       hoge
        service_description             dummy
        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_dummy!0
        contact_groups                  linux-admins
        }

Amazon

Amazon

差分 一覧