Hi, new to this forum but not to Nagios, although I’m stuck here.
Each time I restart/reload Nagios, I get all services/host back in pending and rescheduled, although I have the following settings :
nagios.cfg:status_file=/usr/local/nagios/var/status.dat
nagios.cfg:retain_state_information=1
nagios.cfg:state_retention_file=/usr/local/nagios/var/retention.dat
nagios.cfg:retention_update_interval=60
nagios.cfg:use_retained_program_state=1
nagios.cfg:use_retained_scheduling_info=1
I have read in other posts, that at shutdown, status.dat should be replaced by status.sav, but it doesn’t. I believe that in my case it is retention.dat that does this, and it seems to be doing it but it doesn’t work. Here is an example :
[ROOT@emeanoc01:/usr/local/nagios/var] (94) # rm retention.dat
[ROOT@emeanoc01:/usr/local/nagios/var] (95) # ll st* ret*
-rw-rw-r-- 1 watchmon watch 210K Jul 18 13:32 status.dat
[ROOT@emeanoc01:/usr/local/nagios/var] (96) # nstop
Stopping network monitor: nagios OK ]
[ROOT@emeanoc01:/usr/local/nagios/var] (97) # ll st* ret*
-rw------- 1 watchmon watch 218K Jul 18 13:32 retention.dat
[ROOT@emeanoc01:/usr/local/nagios/var] (98) # nstart
Running configuration check… [PASSED]
Starting network monitor: nagios OK ]
[ROOT@emeanoc01:/usr/local/nagios/var] (99) # ll st* ret*
-rw------- 1 watchmon watch 218K Jul 18 13:33 retention.dat
-rw-rw-r-- 1 watchmon watch 186K Jul 18 13:33 status.dat
My questions are :
- Is my assumption about retention.dat instead of status.sav correct ?
- should this file be deleted automatically at startup (like status.dat at
shutdown?) - Why the heck doesn’t it just work ?
Thanks for any hints.
Clipper
:shock: