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.
Unable to open ~nagios/var/rw/nagios.cmd
-
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
Usually you would add the apache user to the nagios group as well as the group you used when you run configure, e.g.
you would need to add apacge to be a member of the nagcmd group.
Code: Select all
./configure --with-command-group=nagcmdRe: Unable to open ~nagios/var/rw/nagios.cmd
Our previous build was configured exactly the same on this system
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?
Code: Select all
./configure --with-nagios-user=nagios --with-nagios-group=nagios
Re: Unable to open ~nagios/var/rw/nagios.cmd
I am glad your issue has been resolved. I am locking this topic.I did a chgrp "apache" to the nagios.cmd file and it's working
We will do some digging into this to determine if it is a bug. You can check our bug tracker for updates.I suspect something has changed -- and this may need to be logged as a bug or something that needs documentation?
Be sure to check out our Knowledgebase for helpful articles and solutions!