Unable to apply config after 5.8.2 update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Unable to apply config after 5.8.2 update

Post 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!
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Unable to apply config after 5.8.2 update

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Unable to apply config after 5.8.2 update

Post by rferebee »

PM sent. Thank you.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Unable to apply config after 5.8.2 update

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Unable to apply config after 5.8.2 update

Post 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.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Unable to apply config after 5.8.2 update

Post 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.
You do not have the required permissions to view the files attached to this post.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Unable to apply config after 5.8.2 update

Post 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.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Unable to apply config after 5.8.2 update

Post 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.)
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Unable to apply config after 5.8.2 update

Post 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.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Unable to apply config after 5.8.2 update

Post 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
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked