Page 1 of 2
Apply Configuration - error
Posted: Wed Aug 29, 2018 7:25 am
by Alek
Hello,
I have a problem with Apply Configuration. I'm using Nagios XI in version 5.4.12. and i have the error like below.
Error: Contact 'xxxxxx' has no service notification commands defined!
Error: Contact 'xxxxxx' has no host notification commands defined!
But problem is when i open contacts in Core Config Manager > Contacts. This contacts are already removed. So why there is still problem with this contacts.
Please advise how can i solved this problem or what can be an issue here.
Thanks a lot.
Best regards,
Alek
Re: Apply Configuration - error
Posted: Wed Aug 29, 2018 7:29 am
by scottwilkerson
I think the error you are getting is erroneous, the top error is more likely.
Either way, can you run the following from the command line and report the output:
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Re: Apply Configuration - error
Posted: Thu Aug 30, 2018 7:24 am
by Alek
Is there any chance that this will break down monitoring already created ?
Re: Apply Configuration - error
Posted: Thu Aug 30, 2018 7:49 am
by scottwilkerson
Alek wrote:Is there any chance that this will break down monitoring already created ?
Not at all, this is the same action that Apply Configuration from the UI does, but we can see the full error
Re: Apply Configuration - error
Posted: Thu Aug 30, 2018 8:58 am
by Alek
Hello,
I run this and get information:
Another reconfigure process is still running, sleeping ...
and in the end
Sorry, user xyz is not allowed to execute '/usr/local/nagiosxi/scripts/reset_config_perms.sh' as abc on host.
Re: Apply Configuration - error
Posted: Thu Aug 30, 2018 9:00 am
by scottwilkerson
Ok, lets run the following
Code: Select all
rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
the try again.
Re: Apply Configuration - error
Posted: Thu Aug 30, 2018 9:20 am
by Alek
i got this

Re: Apply Configuration - error
Posted: Thu Aug 30, 2018 12:49 pm
by scottwilkerson
don't use sudo, you should already be the root user, then run the command without sudo
Re: Apply Configuration - error
Posted: Mon Sep 03, 2018 8:40 am
by Alek
- bash: ./reconfigure_nagios.sh: Permission denied
I've got this when i try without sudo
Re: Apply Configuration - error
Posted: Tue Sep 04, 2018 7:34 am
by scottwilkerson
you should be root when running these commands
then