Wrong Configuration Status in Core Config Manager

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Wrong Configuration Status in Core Config Manager

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Wrong Configuration Status in Core Config Manager

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Re: Wrong Configuration Status in Core Config Manager

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Wrong Configuration Status in Core Config Manager

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Re: Wrong Configuration Status in Core Config Manager

Post by mopp »

Great, you can close the thread.
Locked