我定义了以下服务:
define service{
use remote-service ; Name of service template to use
host_name linode2
service_description HTTP-Cert-website1
check_command check_http! -H www.website1.com -C 30 --sni
# notifications_enabled 0
}
define service{
use remote-service ; Name of service template to use
host_name linode2
service_description HTTP-Cert-website2
check_command check_http! -H www.website2.com -C 30 --sni
# notifications_enabled 0
}
当我从终端窗口运行命令时,一切正常。当我如上所示运行它时,我收到连接被拒绝错误。
我在这台服务器上有多个网站。所有站点都从 nagios 服务器正确解析。