nagios - 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
有什么我想检查的吗?
解决方案
推荐阅读
- javascript - 如何在卡片中插入背景图像以做出反应?
- jquery - 为什么我无法使用 jquery animate 将 Div 滑动到屏幕上?
- python - 源节点和目标节点的散景不同悬停
- python - 不同的 URL 但相同的图像
- python - _tkinter.TclError:海龟图形中的无效命令名称“.!canvas”错误
- javascript - JavaScript 枚举设备仅在 iPhone 上不工作,在 Android 上工作
- javascript - 是否有可能指定来自道具的数组长度?
- javascript - Python字典到javascript对象?
- sql - 具有 2 列数组输入的 SQL 内联函数
- python - 通过锚点和覆盖对象值组合 YAML 对象