Scheduled downtime being cleared when Nagios Restarts
Posted: Wed Aug 25, 2021 9:29 pm
I have a corrupted retention.dat file so have updated nagios.cfg to use retention2.dat and have restored retention.dat to retention2.dat
Now the scheduled downtime settings are being wiped each time Nagios is restarted with the recurring downtime being resubmitted when the CRON jobs runs after the restart.
Can I restore the previous scheduled downtime settings and also ensure that new scheduled downtime settings are retained after the service restart.
-rw-rw-rw- 1 root root 483 Sep 27 2019 profile.csv
-rw------- 1 nagios nagios 21148201 Aug 26 10:21 retention2.dat
-????????? ? ? ? ? ? retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Aug 26 09:21 rw
-rw-r--r-- 1 nagios nagios 5030 Aug 26 10:27 service-perfdata
drwxr-xr-x 5 nagios nagios 4096 Sep 27 2019 spool
drwxr-xr-x 2 nagios nagios 4096 Aug 26 10:26 stats
-rw-rw-r-- 1 nagios nagios 21102168 Aug 26 10:27 status.dat
Regards
William Bright
ITSM Consultant
Now the scheduled downtime settings are being wiped each time Nagios is restarted with the recurring downtime being resubmitted when the CRON jobs runs after the restart.
Can I restore the previous scheduled downtime settings and also ensure that new scheduled downtime settings are retained after the service restart.
-rw-rw-rw- 1 root root 483 Sep 27 2019 profile.csv
-rw------- 1 nagios nagios 21148201 Aug 26 10:21 retention2.dat
-????????? ? ? ? ? ? retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Aug 26 09:21 rw
-rw-r--r-- 1 nagios nagios 5030 Aug 26 10:27 service-perfdata
drwxr-xr-x 5 nagios nagios 4096 Sep 27 2019 spool
drwxr-xr-x 2 nagios nagios 4096 Aug 26 10:26 stats
-rw-rw-r-- 1 nagios nagios 21102168 Aug 26 10:27 status.dat
Regards
William Bright
ITSM Consultant