Page 1 of 1
retention.dat never created
Posted: Sat Mar 21, 2020 2:07 am
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?
Re: retention.dat never created
Posted: Mon Mar 23, 2020 11:05 am
by scottwilkerson
What are the permissions here
Code: Select all
ls -l /var/lib/nagios4
ls -l /var/lib
ls -l /var
Re: retention.dat never created
Posted: Mon Mar 23, 2020 12:56 pm
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 ...
Re: retention.dat never created
Posted: Mon Mar 23, 2020 1:21 pm
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