Page 1 of 1

Wrong Configuration Status in Core Config Manager

Posted: Thu Aug 04, 2016 8:01 am
by mopp
Nagios XI 5.2.9
The web interface of Core Config Manager shows the wrong status.
Open the Core Config Manager. On the main page it will show
Configuration Status: OK | Verify Configuration

Now create an invalid configuration, e. g. go to Contacts -> Add New -> Contact Name: Test -> Save

Go back to the Core Config Manager main page: Configuration Status: Configuration not applied! | Apply Configuration
Click on Apply Configuration, you will get an error.
Go back to the Core Config Manager main page: Status: OK | Verify Configuration
The main page shows "Status: OK", but the status is not okay. The configuration is not applied because of the error.
Next to "Apply Configuration" is still the "*" symbol, so Nagios XI knows there are some not applied changes. Edit: The "*" was mostlikely shown because of a problem of the browser cache.
The problem is in the nagiosxi database the command

Code: Select all

SELECT value FROM xi_options WHERE name = 'ccm_apply_config_needed';
returns 0, which is equal to everything is okay.

Re: Wrong Configuration Status in Core Config Manager

Posted: Thu Aug 04, 2016 10:42 am
by lmiltchev
Click on Apply Configuration, you will get an error.
Go back to the Core Config Manager main page: Status: OK | Verify Configuration
I will have to run this by our developers, but believe the "Status: OK" message is accurate. When there are configuration errors, nagios reverts back to the last known good configuration, so in fact, the configuration's status should be "OK"...
If you, however clicked on "Verify Configuration" (Write, Verify), you would be checking NOT the actual configs (flat files), but whatever is in the database (CCM), so you will be presented with the error below:
Error: Contact 'test' has no service notification commands defined!
Error: Contact 'test' has no host notification commands defined!

Re: Wrong Configuration Status in Core Config Manager

Posted: Fri Aug 05, 2016 1:09 am
by mopp
The "Configuration Status" does not show if the configuration is okay. The configuration status shows if there are chanes in the CCM database which are not applied. So maybe the text is not perfect.
In my example you can change the contact again, to something wrong and you will see again the status message: "Configuration Status: Configuration not applied!". After hitting apply the message is OK. But the last two configurations had an error. I' m pretty sure the status is set to OK after hitting the button apply configuration without checking if apply configuration was successful.
So from my point of view this is wrong.

Re: Wrong Configuration Status in Core Config Manager

Posted: Fri Aug 05, 2016 10:18 am
by lmiltchev
I just heard back from our developers, and they said that this banner is being replaced in Nagios XI 5.3.0. There is no longer a "configuration OK" banner, only a banner stating that there are changes pending in the CCM.

Re: Wrong Configuration Status in Core Config Manager

Posted: Mon Aug 08, 2016 1:09 am
by mopp
Great, you can close the thread.