Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为我的主机设置一些监控。我知道我可以通过宏访问它$HOSTADDRESS$,但我怎样才能真正将正确的字符串附加到它?$HOSTADDRESS$不会仅在根目录上返回任何内容(因此/在/health-check. 是否可以以某种方式附加/health-check到$HOSTADDRESS$?
$HOSTADDRESS$
/
/health-check
使用基于 Nagios 的 Opsview 6。
您可以在服务描述中将更改传递给 check_http
check_http --help ... -u, --url=PATH URL to GET or POST (default: /) ... check_command check_http!--url=/health-check