配置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进程,什么用户在运行
# ps -ef | grep http
root 4406 10 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 440844060 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 440944060 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 441044060 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 441144060 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 441244060 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 441344060 11:29 ? 00:00:00 /usr/sbin/httpd
nagios 441444060 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’:
check_http.c:312: 错误:‘ssl_version’ 未声明 (在此函数内第一次使用)
check_http.c:312: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
check_http.c:312: 错误:所在的函数内只报告一次。)
make: *** 错误 1
make: Leaving directory `/root/rpm/nagios-plugins-1.4.16/plugins'
make: *** 错误 1
make: Leaving directory `/root/rpm/nagios-plugins-1.4.16'
make: *** 错误 2
这个是因为没有安装ssl导致,安装ssl解决
yum install openssl openssl-devel
走,MM,咱们化蝶去…… 我喜欢孩子,更喜欢造孩子的过程! 我本非随便的人,但如果你想随便,那我就随你的便好啦! 漏洞与补丁齐飞,蓝屏共死机一色! 帮你顶下哈!! 在一辆拥挤的公车上,一位女郎忽然叫了起来:别挤啦!别挤啦!把人家的奶都挤出来啦!(她拿着酸奶呢)。
页:
[1]