Page 1 of 1

error appying config

Posted: Tue Jan 30, 2024 5:16 pm
by tcolletto
I'm just trying to add a simple keep alive monitor to a host and I'm getting an apply errror:

An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Error: Invalid max_check_attempts value for host 'hostname.xxx.xxx'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/docker-gpu1.cra.lan.cfg', starting on line 16)

Write host configurations ...
Host configuration files successfully written!

Write service configurations ...
Service configuration files successfully written!

Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!

Re: error appying config

Posted: Wed Jan 31, 2024 10:13 am
by gwesterman
Hi @tcolleto,

I'm assuming you're attempting to add a service to an existing host via the CCM. If this is the case, then you likely omitted filling out the "Max check attempts" field. When creating the service, navigate to the "Check Settings" tab and the "Alert Settings" tab and ensure every field marked with a red asterisk is filled out.

Let us know if this helps. If this wasn't your issue or you have another question, please ask.

Thank you!