Page 1 of 1

unable to apply configuration

Posted: Thu Apr 15, 2021 1:26 pm
by matson-itops
made a few unrelated changes, but unable to apply configuration with error below

Backend login to the Core Config Manager failed.
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'x' on host 'y'
Error: Could not register service (config file '/usr/local/nagios/etc/services/host_y_config.cfg', starting on line 183)

when I check in nagios, config file '/usr/local/nagios/etc/services/<bad_config>.cfg' does NOT exist at all.
I do see all the checks for host 'y' in CCM and the service status home page, including the one throwing an error.

is there a way I can "write config to file" out of the DB?

Re: unable to apply configuration

Posted: Fri Apr 16, 2021 10:18 am
by vtrac
Hi,
Hope you are having a good day ... :-)

Can you please try these steps:
First, you might have a crash table in your database, let run the below command to fix that:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Now, make sure the "import" folder is empty.

Code: Select all

rm -f /usr/local/nagios/etc/import/*
Now, remove all old configs:
Nagios XI GUI menu > Configure > Core Config Manager > Tools > Config File Management
Now click "Delete Files" > "Write Configs" > "Verify Files"
If no error from "Verify Files", then click "Apply Configuration" on the top left panel.


Best Regards,
Vinh

Re: unable to apply configuration

Posted: Fri Apr 16, 2021 12:18 pm
by matson-itops
thank you for the help! that worked.
not sure if we are now missing hosts, but we can readd them

Re: unable to apply configuration

Posted: Fri Apr 16, 2021 1:31 pm
by vtrac
Great!! .... may I close this thread?

Regards,
Vinh

Re: unable to apply configuration

Posted: Wed Apr 21, 2021 6:26 pm
by matson-itops
yes please. thank you

Re: unable to apply configuration

Posted: Thu Apr 22, 2021 7:45 am
by scottwilkerson
matson-itops wrote:yes please. thank you
Locking thread