Apply Configuration - error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Alek
Posts: 6
Joined: Wed Aug 29, 2018 6:55 am

Apply Configuration - error

Post 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
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Alek
Posts: 6
Joined: Wed Aug 29, 2018 6:55 am

Re: Apply Configuration - error

Post by Alek »

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Alek
Posts: 6
Joined: Wed Aug 29, 2018 6:55 am

Re: Apply Configuration - error

Post 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.
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

Post by scottwilkerson »

Ok, lets run the following

Code: Select all

rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
the try again.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Alek
Posts: 6
Joined: Wed Aug 29, 2018 6:55 am

Re: Apply Configuration - error

Post by Alek »

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

Post by scottwilkerson »

don't use sudo, you should already be the root user, then run the command without sudo
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Alek
Posts: 6
Joined: Wed Aug 29, 2018 6:55 am

Re: Apply Configuration - error

Post by Alek »

- bash: ./reconfigure_nagios.sh: Permission denied

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

Post by scottwilkerson »

you should be root when running these commands

Code: Select all

sudo su
then

Code: Select all

./reconfigure_nagios.sh
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked