Page 1 of 1
apply config re-updating whole config instead of new changes
Posted: Tue Apr 23, 2013 2:48 am
by zaji_nms
Dear Experts,
running 2012R1.8
i have noticed one thing while applying configuration after every change it's re-updating whole config file instead of last or selected host/service chages.
Regards,
Re: apply config re-updating whole config instead of new cha
Posted: Tue Apr 23, 2013 9:03 am
by slansing
Yes as Nagios Xi verifies the configurations it "re-syncs" them with the database subsequently showing you "for verification as well" that every configuration file is present, and updated. Is this what you were stating?
Re: apply config re-updating whole config instead of new cha
Posted: Sat May 04, 2013 11:46 pm
by zaji_nms
yes it's updating each flat files ( i.e services/abc,cfg etc ) as well from 0bytes , the .cfg files which are not modified bcoz of that it takes long time to writing whole config.
Re: apply config re-updating whole config instead of new cha
Posted: Mon May 06, 2013 9:40 am
by slansing
It is expected for apply configuration / write config files to take more time, the more configuration files are added, though I will speak to someone regarding this to see if there are any future plans. On average, how long is it taking for you?
Re: apply config re-updating whole config instead of new cha
Posted: Wed May 15, 2013 2:06 am
by zaji_nms
it's depend upon the total number of services at present we have 3000 and from 0 - 3000 around 40s but ideally it should not happen all service to be checked which are not modified.
Re: apply config re-updating whole config instead of new cha
Posted: Wed May 15, 2013 9:48 am
by slansing
What I meant by my post was it is dependent on all configuration files in your /usr/local/nagios/etc directory, and your mysql database configuration. At this time, Apply Configuration will check all of this and it is not changeable as there are consistencies that must remain within the configuration files, and the database, in order for Nagios XI to function correctly.
Re: apply config re-updating whole config instead of new cha
Posted: Wed Sep 11, 2013 7:43 am
by zaji_nms
is there any update on action applyconfig recheck all .cfg files and writing in to mysql ?
Re: apply config re-updating whole config instead of new cha
Posted: Wed Sep 11, 2013 9:29 am
by sreinhardt
This is the intended action that XI takes. It is done this way so that if configurations were removed or modified on the flat file system, they are replaced with correct version. You could certainly make a feature request on tracker.nagios.com. However, at this point I do not see us making a change, as not overwriting and allowing possible changes to the flat files can result in massive issues.