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.
An error occurred while attempting to apply your configuration to Nagios Core.
-
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.
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
you have these settings?
Also can you post what your contacts and contact group looks like in contacts.cfg?
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
-
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.
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.
Glad we could help. If there is anything else we can help with let us know.