An error occurred

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

An error occurred

Post by mtkaschools »

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

This is the message I get when I try to modify any host or service. I've tried to reboot the nagios service, and reset permissions, but I keep getting this.

please advise.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: An error occurred

Post by lmiltchev »

Run the following commands in terminal as root and post the "reconfig.txt":

Code: Select all

# cd /usr/local/nagiosxi/scripts
# ./reconfigure_nagios.sh &> reconfig.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: An error occurred

Post by mtkaschools »

The file is attached.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: An error occurred

Post by mguthrie »

I think you ran that using $> instead of &>, we're actually missing some of the output in that file, can you run that command again as :

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> reconfig.txt
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: An error occurred

Post by mtkaschools »

the new file is attached.
You do not have the required permissions to view the files attached to this post.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: An error occurred

Post by agriffin »

That file still doesn't have everything we need. It seems to be cut off after about 80 lines. Can you please send us the actual reconfig.txt file instead of a transcript of your terminal session?
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: An error occurred

Post by mtkaschools »

what is a recommendation to get it out of centos over to a windows box?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: An error occurred

Post by agriffin »

There are lots of ways to do it. I usually use SFTP, which uses your SSH credentials (a good client is FileZilla). Another way might be to email it to yourself from the command line:

Code: Select all

echo Command output attached | mail -a reconfig.txt -s "Attachment for Nagios Support" [email protected]
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: An error occurred

Post by mtkaschools »

okay, let's try this again. Attached is the file.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: An error occurred

Post by mguthrie »

An error occurred while attempting to apply your configuration to Nagios Core.
Can you show us where you're getting this error message? The log for reconfigure_nagios.sh looks good, so the problem doesn't appear to be there.
Locked