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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
forrie
Posts: 25
Joined: Tue Nov 22, 2011 6:50 pm

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

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

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
forrie
Posts: 25
Joined: Tue Nov 22, 2011 6:50 pm

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

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

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

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