Nagios XI R5 - Determine Unapplied Changes Pending

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Nagios XI R5 - Determine Unapplied Changes Pending

Post by mp4783 »

In past Nagios XI releases you could determine if there were changes pending by querying the PostgreSQL database.

Now that the PostgreSQL database has been dropped (thank you!), how do we determine if unapplied changes are pending?

Thank you.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI R5 - Determine Unapplied Changes Pending

Post by Box293 »

I will get the developers to get back to you with an answer on this.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Re: Nagios XI R5 - Determine Unapplied Changes Pending

Post by mp4783 »

I think I found the answer (and it would have been obvious if I'd just looked):

MySQL Query:

Code: Select all

SELECT value FROM nagiosxi.xi_options WHERE name = 'ccm_apply_config_needed';
If the value is '0', then no changes are pending. If it is '1', there are pending changes. I tested this and it appears to be the case.

Confirmation would be nice, but this correct.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI R5 - Determine Unapplied Changes Pending

Post by hsmith »

The answer that I got from the developers is that your query would only show whether or not an apply config is needed. If you needed to figure out exactly 'what' needed an apply config you would need to check file timestamps and last_modified in nagiosql.
Former Nagios Employee.
me.
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Re: Nagios XI R5 - Determine Unapplied Changes Pending

Post by mp4783 »

That's all I was concerned with at this point. I have external configuration management tool that I want to "wait" until all changes have been applied before it attempts to execute it's changes. I use this in conjunction with the reconfiguration lock file to ensure only one set of changes are applied at a time to the system.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI R5 - Determine Unapplied Changes Pending

Post by hsmith »

mp4783 wrote:That's all I was concerned with at this point.
Does that mean we are all right to consider this one resolved?
Former Nagios Employee.
me.
Locked