Page 1 of 1

group ownership of nagios.cmd

Posted: Thu May 26, 2016 3:27 pm
by jssingh
We have 2 instances of nagios with the same setup. On both of them nagios.cmd is owned by the nagios user and the group is the group with the nrdp user and the nagios user.

On one system (the production system), when I restart nagios it changes the group to the default group for the nagios user, but on the other system it keeps the group the same. So obviously there is something different between the two systems, but I can't figure out what it is. Does anyone know what settings would cause this behavior?

Re: group ownership of nagios.cmd

Posted: Thu May 26, 2016 3:34 pm
by rkennedy
I believe this is from when you first configured Core, and appended the --with-command-group=<user>. On the Core system I'm running for example, I used the 'nagcmd' user, and that's what it defaults to after a restart as well.

Code: Select all

[root@localhost rw]# ls -l nagios.cmd
prw-rw---- 1 nagios nagcmd 0 May  6 15:12 nagios.cmd
[root@localhost rw]# chown nagios:nagios nagios.cmd
[root@localhost rw]# ls -l
total 0
prw-rw---- 1 nagios nagios 0 May  6 15:12 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 May  6 15:12 nagios.qh
[root@localhost rw]# service nagios restart
Restarting nagios (via systemctl):                         [  OK  ]
[root@localhost rw]# ls -l
total 0
prw-rw---- 1 nagios nagcmd 0 May 26 16:31 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 May 26 16:31 nagios.qh

Re: group ownership of nagios.cmd

Posted: Tue Jun 14, 2016 2:40 pm
by eloyd
What he said. And I forget, ALL THE TIME, to use that argument when I'm building Core. Makes me scratch my head a lot until I remember, go reconfigure, recompile, and reinstall just so I can write stuff to nagios.cmd.

Re: group ownership of nagios.cmd

Posted: Tue Jun 14, 2016 3:36 pm
by jssingh
Yeah, apparently I remembered to do it for one server and not the other! :)

Re: group ownership of nagios.cmd

Posted: Tue Jun 14, 2016 3:55 pm
by rkennedy
No problem! Were you able to get this resolved then @jssingh?

Re: group ownership of nagios.cmd

Posted: Tue Jun 14, 2016 4:00 pm
by jssingh
yes. thank you.