我对主机的当前服务定义如下所示
define service{
use xyzserver
host_name backup.xyz.com
service_description http
check_command check_http #??
}
我想将check_http的警告和关键时间增加到5分钟(警告)和10分钟(严重)
命令定义在我的nagios服务器上看起来像这样
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
我已直接在命令行上运行check_http,如下所示,它按预期输出,但我不知道在“服务定义”中将警告,关键,超时和端口号等参数放在哪里?
./check_http -H 172.217.0.238 -w 60 -c 70 -t 60
答案 0 :(得分:0)
这样的事情:
define service{
use xyzserver
host_name backup.xyz.com
service_description http
check_command check_http!'-H 172.217.0.238 -w 60 -c 70 -t 60'
}