Page 1 of 1

An error occurred while attempting to apply your configuration to Nagios Core.

Posted: Mon Oct 16, 2023 9:34 am
by jason.mcnulty
I am having an issue where we removed a Nagios admin user account (I do not know when this account was removed) from the platform and now when I try to apply a new configuration, I receive the following error message:

<div>Error: Contact <USER NAME> has no service notification commands defined!</div><div>Error: Contact <USER NAME> has no host notification commands defined!</div>

I've tried to re-add this account, but I receive the same error when trying to commit an Application Configuration. This error occurs when any type of configuration has changed, I tried to create a web site monitoring configuration, and I have removed some old accounts from the platform. Each change results in in the same error.

Re: An error occurred while attempting to apply your configuration to Nagios Core.

Posted: Wed Oct 18, 2023 9:38 am
by sgardil
Hey @jason.mcnulty

When adding a new user make sure to check in the alert settings tab and select host and service notification timeperiods. If this doesn't fix the issue then it sounds like your contact template is missing some commands. Can you check your templates.cfg files and make sure that in

Code: Select all

define contact {
	....
}

you have these settings?

Code: Select all

    service_notification_commands   notify-service-by-email ; send service notifications via email
    host_notification_commands      notify-host-by-email    ; send host notifications via email
Also can you post what your contacts and contact group looks like in contacts.cfg?

Re: An error occurred while attempting to apply your configuration to Nagios Core.

Posted: Wed Oct 18, 2023 12:06 pm
by jason.mcnulty
Thank you for your reply. I was able to resolve this using your suggested solution to check alert settings tab and select host and service notification timeperiods. Once I enabled this setting, I was able to apply the configuration.

Re: An error occurred while attempting to apply your configuration to Nagios Core.

Posted: Wed Oct 18, 2023 1:17 pm
by sgardil
Glad we could help. If there is anything else we can help with let us know.