首页 > 解决方案 > Nagios Core 错误无法获取进程状态

问题描述

我在使用 Nagios Core 版本 4.1.1 时遇到问题

我相信它与httpd有关,我这么说的原因是我在执行时

服务 nagios 停止,我仍然收到类似的错误消息

无法获取进程状态

我检查了 nagios.log 和 access_log 和 error_log,但没有明显的问题。

是因为目录的权限吗?

[root@puppet nagios]# pwd
/etc/nagios
[root@puppet nagios]# ls -ld .
drwxrwxr-x. 5 root root 4096 Jun 10 22:42 .
[root@puppet nagios]# ls -alrth
total 92K
-rw-r-----.   1 root apache   27 Nov 25  2017 passwd
-rw-rw-r--.   1 root root    44K Nov 25  2017 nagios.cfg
-rw-rw-r--.   1 root root    13K Nov 25  2017 cgi.cfg
drwxr-x---.   2 root nagios 4.0K Jun 10 16:46 private
drwxr-x---.   2 root nagios 4.0K Jun 10 21:52 conf.d
drwxr-x---.   2 root nagios 4.0K Jun 10 22:41 objects
drwxrwxr-x.   5 root root   4.0K Jun 10 22:42 .
drwxr-xr-x. 127 root root    12K Jun 10 23:00 ..
[root@puppet nagios]# 

用户和权限在我看来也不错:

[root@puppet nagios]# id nagios
uid=495(nagios) gid=492(nagios) groups=492(nagios),48(apache),501(nagcmd)
[root@puppet nagios]# id apache
uid=48(apache) gid=48(apache) groups=48(apache),501(nagcmd)
[root@puppet nagios]# id nagcmd
id: nagcmd: No such user
[root@puppet nagios]# cat /etc/group|grep nagcmd
nagcmd:x:501:apache,nagios
[root@puppet nagios]# 

httpd.conf 配置:

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

有什么我想检查的吗?

标签: nagios

解决方案


推荐阅读