Page 2 of 2

Re: Unable to open ~nagios/var/rw/nagios.cmd

Posted: Mon Apr 14, 2014 4:38 pm
by forrie
I did a chgrp "apache" to the nagios.cmd file and it's working -- this makes some sense, as that is the effective group of the apache server. But, with our older Nagios installation (3.x) under CentOS 5.x, this is not necessary.

So, what changed in the code (I wonder) if anything that this became necessary -- and I wonder if anyone else has experienced this problem.

Re: Unable to open ~nagios/var/rw/nagios.cmd

Posted: Tue Apr 15, 2014 9:15 am
by scottwilkerson
Usually you would add the apache user to the nagios group as well as the group you used when you run configure, e.g.

Code: Select all

./configure --with-command-group=nagcmd
you would need to add apacge to be a member of the nagcmd group.

Re: Unable to open ~nagios/var/rw/nagios.cmd

Posted: Tue Apr 15, 2014 11:42 am
by forrie
Our previous build was configured exactly the same on this system

Code: Select all

./configure --with-nagios-user=nagios --with-nagios-group=nagios
Our configuration is really very simple, out-of-the-box install from the source code. So, I suspect something has changed -- and this may need to be logged as a bug or something that needs documentation?

Re: Unable to open ~nagios/var/rw/nagios.cmd

Posted: Tue Apr 15, 2014 12:26 pm
by lmiltchev
I did a chgrp "apache" to the nagios.cmd file and it's working
I am glad your issue has been resolved. I am locking this topic.
I suspect something has changed -- and this may need to be logged as a bug or something that needs documentation?
We will do some digging into this to determine if it is a bug. You can check our bug tracker for updates.