Page 1 of 1
retention.dat permissions
Posted: Tue Mar 21, 2017 4:04 pm
by baamf
Hello, I'm running Nagios Core 4.1.1 and to assist with some of my homegrown syncing mechanisms I'd like to change the permissions of the retention.dat file. I have changed it to 640 but whenever the file is updated by nagios the permissions go back to the default 600. Is this something that can be easily set somewhere or is it hardcoded? I googled and checked the nagios.cfg and umask but didn't find anything. Is there something obvious that I'm missing. Any assistance would be greatly appreciated.
Re: retention.dat permissions
Posted: Tue Mar 21, 2017 4:49 pm
by avandemore
It's set in the function mkstemp(), there are no configurable options for it meaning you'd have to change the code.
A request could be made here to implement some user defined options, but I'm not sure how popular that would be.
https://github.com/NagiosEnterprises/nagioscore
Re: retention.dat permissions
Posted: Wed Mar 22, 2017 7:15 am
by baamf
I understand. Thank you for your time.
Re: retention.dat permissions
Posted: Wed Mar 22, 2017 10:05 am
by cdienger
Did you have any further questions or are we okay to close this thread?
Re: retention.dat permissions
Posted: Wed Mar 22, 2017 12:40 pm
by baamf
You can close the thread. Thanks.