Apply Configuration - error
Apply Configuration - error
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
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
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration - error
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:
Either way, can you run the following from the command line and report the output:
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.shRe: Apply Configuration - error
Is there any chance that this will break down monitoring already created ?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration - error
Not at all, this is the same action that Apply Configuration from the UI does, but we can see the full errorAlek wrote:Is there any chance that this will break down monitoring already created ?
Re: Apply Configuration - error
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.
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.
Last edited by Alek on Thu Aug 30, 2018 9:04 am, edited 1 time in total.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration - error
Ok, lets run the following
the try again.
Code: Select all
rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lockRe: Apply Configuration - error
i got this 
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration - error
don't use sudo, you should already be the root user, then run the command without sudo
Re: Apply Configuration - error
- bash: ./reconfigure_nagios.sh: Permission denied
I've got this when i try without sudo
I've got this when i try without sudo
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Configuration - error
you should be root when running these commands
then
Code: Select all
sudo suCode: Select all
./reconfigure_nagios.sh