unable to apply configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matson-itops
Posts: 128
Joined: Wed Nov 18, 2015 11:19 pm

unable to apply configuration

Post 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?
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: unable to apply configuration

Post 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
matson-itops
Posts: 128
Joined: Wed Nov 18, 2015 11:19 pm

Re: unable to apply configuration

Post by matson-itops »

thank you for the help! that worked.
not sure if we are now missing hosts, but we can readd them
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: unable to apply configuration

Post by vtrac »

Great!! .... may I close this thread?

Regards,
Vinh
matson-itops
Posts: 128
Joined: Wed Nov 18, 2015 11:19 pm

Re: unable to apply configuration

Post by matson-itops »

yes please. thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to apply configuration

Post by scottwilkerson »

matson-itops wrote:yes please. thank you
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked