我第一次build立了Icinga。
我想监视网站,而不是他们的主机(即不平,只有http)。
我已经创build了这样的模板:
template Host "generic-website" { check_command = "http" } apply Service "http" { import "generic-website" check_command = "http" assign where host.vars.http_address }
但我的“主人”总是出现,即使是一个虚假的地址。
什么是检查http的正确方法?
提前致谢
你可以像这样定义一个命令:
# 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ }
然后调用这个命令为:
define service{ use genericservice hostgroup_name hostgroup service_description Web Servers public site notes www site check check_command check_http }