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?
unable to apply configuration
Re: unable to apply configuration
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:
Now, make sure the "import" folder is empty.
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
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
Code: Select all
rm -f /usr/local/nagios/etc/import/*
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
-
- Posts: 128
- Joined: Wed Nov 18, 2015 11:19 pm
Re: unable to apply configuration
thank you for the help! that worked.
not sure if we are now missing hosts, but we can readd them
not sure if we are now missing hosts, but we can readd them
Re: unable to apply configuration
Great!! .... may I close this thread?
Regards,
Vinh
Regards,
Vinh
-
- Posts: 128
- Joined: Wed Nov 18, 2015 11:19 pm
Re: unable to apply configuration
yes please. thank you
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to apply configuration
Locking threadmatson-itops wrote:yes please. thank you