apply config re-updating whole config instead of new changes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

apply config re-updating whole config instead of new changes

Post 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,
Zajil NMS
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: apply config re-updating whole config instead of new cha

Post 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?
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: apply config re-updating whole config instead of new cha

Post 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.
Zajil NMS
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: apply config re-updating whole config instead of new cha

Post 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?
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: apply config re-updating whole config instead of new cha

Post 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.
Zajil NMS
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: apply config re-updating whole config instead of new cha

Post 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.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: apply config re-updating whole config instead of new cha

Post by zaji_nms »

is there any update on action applyconfig recheck all .cfg files and writing in to mysql ?
Zajil NMS
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: apply config re-updating whole config instead of new cha

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked