retention.dat permissions

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.
Locked
baamf
Posts: 4
Joined: Fri Sep 12, 2014 12:07 pm

retention.dat permissions

Post 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.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: retention.dat permissions

Post 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
Previous Nagios employee
baamf
Posts: 4
Joined: Fri Sep 12, 2014 12:07 pm

Re: retention.dat permissions

Post by baamf »

I understand. Thank you for your time.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: retention.dat permissions

Post by cdienger »

Did you have any further questions or are we okay to close this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
baamf
Posts: 4
Joined: Fri Sep 12, 2014 12:07 pm

Re: retention.dat permissions

Post by baamf »

You can close the thread. Thanks.
Locked