syslogd dead but pid file exists
Posted: Wed Oct 06, 2010 9:26 am
Hello,
We have recently installed the VM Appliance for Nagios XI and when we tried deploying the client to a linux host (RHEL 5.5) we noticed that one of the test does not work "out of the box". The test in question is labeled "System Logging Daemon" and the Status Information I see on the page reads "syslogd dead but pid file exists".
After doing some troubleshooting, we think that the problem is related to permissions. In our environment both klogd.pid and syslogd.pid are owned by root with 600 permissions:
-rw------- 1 root root 6 Oct 4 12:35 klogd.pid
-rw------- 1 root root 6 Oct 4 12:35 syslogd.pid
Not nowing exactly whats going on under the hood, we "think" we found the culprit of the problem by manually executing:
/usr/local/nagios/libexec/check_init_service syslog
/etc/init.d/functions: line 141: /var/run/syslogd.pid: Permission denied
syslogd dead but pid file exists
/etc/init.d/functions: line 141: /var/run/klogd.pid: Permission denied
klogd dead but pid file exists
If we change the permissions on both klogd.pid and syslogd.pid to allow "others to read" then the nagios check_init_service script works fine, but I wanted to see if there existed any other way you all can recommend on how to achieve this (maybe via some sort of sudo privilege granted to the nagios account?)
BTW, the nagios user has already sudo access to /sbin/service (as indicated on the installation instructions).
Any help is greatly appreciated.
We have recently installed the VM Appliance for Nagios XI and when we tried deploying the client to a linux host (RHEL 5.5) we noticed that one of the test does not work "out of the box". The test in question is labeled "System Logging Daemon" and the Status Information I see on the page reads "syslogd dead but pid file exists".
After doing some troubleshooting, we think that the problem is related to permissions. In our environment both klogd.pid and syslogd.pid are owned by root with 600 permissions:
-rw------- 1 root root 6 Oct 4 12:35 klogd.pid
-rw------- 1 root root 6 Oct 4 12:35 syslogd.pid
Not nowing exactly whats going on under the hood, we "think" we found the culprit of the problem by manually executing:
/usr/local/nagios/libexec/check_init_service syslog
/etc/init.d/functions: line 141: /var/run/syslogd.pid: Permission denied
syslogd dead but pid file exists
/etc/init.d/functions: line 141: /var/run/klogd.pid: Permission denied
klogd dead but pid file exists
If we change the permissions on both klogd.pid and syslogd.pid to allow "others to read" then the nagios check_init_service script works fine, but I wanted to see if there existed any other way you all can recommend on how to achieve this (maybe via some sort of sudo privilege granted to the nagios account?)
BTW, the nagios user has already sudo access to /sbin/service (as indicated on the installation instructions).
Any help is greatly appreciated.