Page 1 of 4
Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 11:22 am
by SavaSC
Hello,
Recently NagiosXI has started resetting the Duration time for all Services and Hosts when Apply Configuration is pressed. This is making the Duration column completely useless. Every little change (such as to the Description of a host) will cause all of the Duration data for all Services and Hosts to reset.
This hasn't always happened. Is there a setting I can change to keep the Duration data for non-affected Hosts and Services in place on a Apply Configuration?
Version 2014R2.7
Thank you for your help!
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 12:03 pm
by ssax
Please post the output of this command:
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 12:19 pm
by SavaSC
Here you go.
Code: Select all
# ls -l /usr/local/nagios/var
total 34648
drwxrwxr-x 2 nagios nagios 65536 Jul 1 23:59 archives
-rw-r--r-- 1 nagios nagios 0 Jul 2 12:17 host-perfdata
-rw-r--r-- 1 nagios nagios 178 Jul 2 10:22 nagios.configtest
-rw-r--r-- 1 nagios nagios 6 Jul 2 10:07 nagios.lock
-rw-r--r-- 1 nagios nagios 577000 Jul 2 12:17 nagios.log
-rw-r--r-- 1 nagios nagios 5 Jun 5 08:34 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Jul 2 10:07 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Jun 5 08:34 ndo.sock
-rw-r--r-- 1 nagios nagios 2201015 Jun 5 08:34 npcd.log
-rw-r--r-- 1 nagios nagios 10485835 Oct 9 2013 npcd.log.old
-rw-r--r-- 1 nagios nagios 2638701 Jul 2 10:07 objects.cache
-rw-r--r-- 1 nagios nagios 2638701 Jul 2 10:22 objects.precache
-rw-rw-rw- 1 nagios nagios 8488151 Apr 9 04:55 perfdata.log
-rw------- 1 nagios nagios 4148062 Jul 2 12:07 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Jul 2 10:07 rw
-rw-r--r-- 1 nagios nagios 0 Jul 2 12:17 service-perfdata
drwxrwxr-x 5 nagios nagios 4096 Mar 1 2011 spool
drwxr-xr-x 2 nagios nagios 4096 Jan 9 15:29 stats
-rw-rw-r-- 1 nagios nagios 4131013 Jul 2 12:17 status.dat
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 12:46 pm
by abrist
Is state retention enabled?
Code: Select all
grep retain_state /usr/local/nagios/etc/nagios.cfg
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 12:49 pm
by SavaSC
Here is the result:
Code: Select all
# grep retain_state /usr/local/nagios/etc/nagios.cfg
retain_state_information=1
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 12:58 pm
by abrist
Lets check a few more directives:
Code: Select all
grep "state\|retention\|retain" /usr/local/nagios/etc/nagios.cfg
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 1:02 pm
by SavaSC
Code: Select all
# grep "state\|retention\|retain" /usr/local/nagios/etc/nagios.cfg
log_initial_states=0
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
retained_host_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_service_attribute_mask=0
retain_state_information=1
retention_update_interval=60
soft_state_dependencies=0
state_retention_file=/usr/local/nagios/var/retention.dat
use_retained_program_state=1
use_retained_scheduling_info=1
Re: Duration resets for all Services with Apply Config
Posted: Thu Jul 02, 2015 4:33 pm
by tmcdonald
Does the duration also reset in the Core interface? You can get to it by visiting http://<server ip>/nagios and using your XI credentials.
Re: Duration resets for all Services with Apply Config
Posted: Mon Jul 06, 2015 7:54 am
by SavaSC
tmcdonald wrote:Does the duration also reset in the Core interface? You can get to it by visiting http://<server ip>/nagios and using your XI credentials.
Sorry for the delay.
Yes, it does. I did an Apply Configuration in XI and it affected both XI and Core.
Re: Duration resets for all Services with Apply Config
Posted: Mon Jul 06, 2015 11:15 am
by lmiltchev
Can you post the entire "nagios.cfg" file?