报错信息:
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
解决方法:
[root@redhat8 ~]# sed -i 's/use_authentication=1/use_authentication=0/g' /usr/local/nagios/etc/cgi.cfg
接着刷新网页即可。
默认就监控本机(localhost):
备注:此时被监控主机没有安装Web服务,状态信息:connect to address 192.168.168.130 and port 80: 没有到主机的路由
当被监控主机安装了Web服务,且TCP 80端口能正常对外提供服务时,状态信息:TCP OK - 0.001 second response time on 192.168.168.130 port 80