配置nagios遇到的错误-创新互联

Error: Could not read host and service status information!

成都创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:网站设计制作、成都网站设计、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的翁牛特网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.

apache的运行用户要对文件写的权限 ,权限设置目录、/usr/local/nagios/var/rw

查看apache进程,什么用户在运行

[root@standby objects]# ps -ef | grep http
root      4406     1  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4408  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4409  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4410  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4411  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4412  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4413  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd
nagios    4414  4406  0 11:29 ?        00:00:00 /usr/sbin/httpd

然后 更改权限

chmod 777 /usr/local/nagios/var/rw

重启服务

service nagios restart

被监控机上安装 nagios-plugins 插件时报错

check_http.c: In function ‘process_arguments’:

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


本文名称:配置nagios遇到的错误-创新互联
网页网址:http://scyanting.com/article/cshdoc.html