retention.dat never created

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
divB
Posts: 8
Joined: Wed Feb 19, 2014 4:53 am

retention.dat never created

Post by divB »

Hi,

I just upgraded to Debian buster with nagios4. Suddenly everything is PENDING when I restart nagios. Super annoying.

My config has (Debian defaults):

Code: Select all

retain_state_information=1
state_retention_file=/var/lib/nagios4/retention.dat
But /var/lib/nagios4/retention.dat is never created!

Do I miss anything?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: retention.dat never created

Post by scottwilkerson »

What are the permissions here

Code: Select all

ls -l /var/lib/nagios4
ls -l /var/lib
ls -l /var
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
divB
Posts: 8
Joined: Wed Feb 19, 2014 4:53 am

Re: retention.dat never created

Post by divB »

Thanks for your reply. /var/lib/nagios is is owned by nagios user and was fully writeable.

Very strangely things started to work after letting run nagios for some time ... the retention.dat got created.
I understand there is the parameter which says how often the retention.dat is written during runtime (which is 60min by default, I think) but to my understanding this should happen no matter what when nagios shuts down. Maybe this doesn't happen ...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: retention.dat never created

Post by scottwilkerson »

divB wrote:but to my understanding this should happen no matter what when nagios shuts down. Maybe this doesn't happen ...
Yes, this should be true.

I'm glad that it did start working
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked