check_dummy
特定のステータスを返すプラグイン。
対象
なし
アーカイブ内での位置
plugins/check_dummy
実行
OKを返す。
/usr/local/nagios/libexec/check_dummy 0
| 引数 | ステータス |
| -1 | UNKNOWN |
| 0 | OK |
| 1 | WARNING |
| 2 | CRITICAL |
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
}
