Disabled Hosts Still Monitored

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Disabled Hosts Still Monitored

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disabled Hosts Still Monitored

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Disabled Hosts Still Monitored

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Disabled Hosts Still Monitored

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked