Page 3 of 3
Re: Disabled Hosts Still Monitored
Posted: Mon Aug 13, 2012 9:34 am
by jbennett
Code: Select all
[root@nagiosxivm rw]# ls -l /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Aug 13 14:19 /usr/local/nagios/var/rw/nagios.cmd
[root@nagiosxivm rw]# cat /etc/group|grep nag
nagios:x:500:apache
nagcmd:x:501:
nagioscmd:x:502:
nagiocmd:x:503:nagios,nobody
No, I did not try to recompile outside of the install/upgrade scripts as far as I know. The individual who installed and configured prior to my taking over may have.
Re: Disabled Hosts Still Monitored
Posted: Mon Aug 13, 2012 10:52 am
by scottwilkerson
So when you restart nagios is it leaving the permissions as:
Code: Select all
[root@nagiosxivm rw]# ls -l /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Aug 13 14:19 /usr/local/nagios/var/rw/nagios.cmd
This is how it is supposed to be.
Re: Disabled Hosts Still Monitored
Posted: Mon Aug 13, 2012 3:21 pm
by jbennett
The permissions do remain the same, however, when I try to schedule downtime, or acknowledge a host or service being down, I get the error:
Code: Select all
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
As stated in my previous post, if I chmod 777 /usr/local/nagios/var/rw/nagios.cmd, I'm able to schedule down-time and to acknowledge without error.
Re: Disabled Hosts Still Monitored
Posted: Mon Aug 13, 2012 4:12 pm
by lmiltchev
I am not sure why you have all these entries in the /etc/group:
Code: Select all
nagios:x:500:apache
nagcmd:x:501:
nagioscmd:x:502:
nagiocmd:x:503:nagios,nobody
You should probably have only these:
Code: Select all
nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apache
Note that nagios and apache must be added to nagios and nagcmd!
Hope this helps.