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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
jason.mcnulty
Posts: 3
Joined: Tue Dec 20, 2022 4:09 pm

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

Post 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.
sgardil
Posts: 350
Joined: Wed Aug 09, 2023 9:58 am

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

Post 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?
jason.mcnulty
Posts: 3
Joined: Tue Dec 20, 2022 4:09 pm

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

Post 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.
sgardil
Posts: 350
Joined: Wed Aug 09, 2023 9:58 am

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

Post by sgardil »

Glad we could help. If there is anything else we can help with let us know.
Post Reply