How can I detect if an apply config is needed from cli

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
StevenBeauchemin
Posts: 15
Joined: Fri Jun 30, 2023 12:39 pm

How can I detect if an apply config is needed from cli

Post by StevenBeauchemin »

I can see in CCM when the system wants an Apply Config.

How can I tell from the command line if an Apply Config is needed?

Thanks

Steve B
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: How can I detect if an apply config is needed from cli

Post by kg2857 »

If you haven't made a change in CCM or dropped anything in the import dir there's no need to reconfigure.
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

Re: How can I detect if an apply config is needed from cli

Post by cdietsch »

Hi Steve,

I don't think there is a builtin command but I know you can run the following SQL query:

Code: Select all

SELECT value FROM nagiosxi.xi_options WHERE name = 'ccm_apply_config_needed';
And it will output either 0 or 1.

You could write a shell script to run query and parse the output.
Cheers,
- Cole
Post Reply