Page 1 of 3

Unable to apply config after 5.8.2 update

Posted: Mon Mar 01, 2021 11:41 am
by rferebee
Good morning, we attempted to update from 5.7.3 to 5.8.2 this morning and I'm running into some difficulties. The update itself went fine, but now I am unable to apply any new configs (attempted to reboot host as well as run DB repair script) as the system is trying to apply a contact that does not exist to a group of hosts/services.

Also, I am unable to sync the Hostgroup BPIs, it's throwing an error 'Unable to match string in config file.'

I updated to 5.7.1 a couple weeks ago in my test environment and haven't seen any issues, so not sure what the difference is today.

Any help is appreciated. I have a profile ready to PM. Thank you!

Re: Unable to apply config after 5.8.2 update

Posted: Mon Mar 01, 2021 4:47 pm
by dchurch
If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.

Re: Unable to apply config after 5.8.2 update

Posted: Mon Mar 01, 2021 4:59 pm
by rferebee
PM sent. Thank you.

Re: Unable to apply config after 5.8.2 update

Posted: Mon Mar 01, 2021 5:12 pm
by dchurch
Going to Config File Management, then running Delete, Write, then Verify reveals more problems more verbosely. (This is actually the process that the "Apply Config" button does under the hood.) Sometimes doing this will reveal better error messages to help diagnose.

Here's what I found going thru your config:

1. The contact xi_default_contact is marked inactive. Mark it active using the CCM.
2. Edit the contact xi_default_contact and under Notifications, add xi_host_notification_handler under Manage Host Notification Commands
3. Edit the contact xi_default_contact and under Notifications, add xi_service_notification_handler under Manage Service Notification Commands

After that, your config successfully verified for me.

After fixing these things, try doing the BPI sync to see if that resolves it.

Re: Unable to apply config after 5.8.2 update

Posted: Mon Mar 01, 2021 5:26 pm
by rferebee
Is it now a requirement to use the xi_default_contact?

We have never had it enabled and it hasn't been an issue in the past. A few warnings at the end of an update, but that's it.

Re: Unable to apply config after 5.8.2 update

Posted: Mon Mar 01, 2021 5:38 pm
by rferebee
This might be a larger issue. I cannot apply config changes to my Production environment either. See attached screenshot.

The error is referencing a user that no longer exists in my environment.

Re: Unable to apply config after 5.8.2 update

Posted: Tue Mar 02, 2021 11:04 am
by rferebee
I'm not sure if there's something going on with my DB or what. I tried rolling back to a backup from 2 weeks ago and still cannot apply any configs. The last time I successfully made a change was 2/19.

Re: Unable to apply config after 5.8.2 update

Posted: Tue Mar 02, 2021 11:27 am
by dchurch
1. Open CCM => Contacts.
2. Check to make sure the 'syates' contact exists, and is active.
3. If you no longer want this contact, either delete or deactivate it, and remove it from the appropriate contact group and/or hosts and/or services.

Instead of using Apply Config, if you go to to Config (top menu) -> Core Config Manager => Config File Management (left menu), then running Delete, Write, then Verify often will reveal more problems with better error messages. This is tremendously helpful when diagnosing config problems. (This is actually the process that the "Apply Config" button does under the hood.)

Re: Unable to apply config after 5.8.2 update

Posted: Tue Mar 02, 2021 11:41 am
by rferebee
All I see are warnings (those are normal in my environment and should be preventing me from applying a config).

If you re-read my previous message with the screenshot. User 'syates' does not exist in my XI environment anymore. I cannot find a reference to the account anywhere, so the error shown must be referring to some junk entry in the database somewhere. I need help finding that please.

Re: Unable to apply config after 5.8.2 update

Posted: Tue Mar 02, 2021 5:07 pm
by dchurch
1. Open up goedfs1.goed in the CCM hosts
2. Open the Alerts tab
3. Click Manage Contacts
4. Remove syates from the list.
Save & apply config