Apply Config throws error but says no error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Apply Config throws error but says no error

Post by SavaSC »

Hello,

Have a weird one. I made some changes to Nagios and tried to apply the config. It failed and says there was an error. I click on the "Show Error" button and I just get a highlighted line with no text. I have attached a screenshot, an audit log of the last 24 hours, and the system profile.

Please take a look and see if you can see the issue.

Thanks.
You do not have the required permissions to view the files attached to this post.
bolson

Re: Apply Config throws error but says no error

Post by bolson »

Please run the following command from the command line and post your result:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Apply Config throws error but says no error

Post by SavaSC »

bolson wrote:Please run the following command from the command line and post your result:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
OK, please find it attached.

I saw the warnings about the partition checks on the Nagios server. I corrected those and tried to apply but had the same result.

Thanks.
You do not have the required permissions to view the files attached to this post.
bolson

Re: Apply Config throws error but says no error

Post by bolson »

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Can you run this again and post the result?
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Apply Config throws error but says no error

Post by SavaSC »

bolson wrote:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Can you run this again and post the result?

Ummm... OK. Here you go.
You do not have the required permissions to view the files attached to this post.
bolson

Re: Apply Config throws error but says no error

Post by bolson »

I think these configuration warnings could be the culprit. Please attach your /usr/local/nagios/etc/nagios.cfg.

Thank you!
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Apply Config throws error but says no error

Post by SavaSC »

Here you go. Thank you for looking.
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Apply Config throws error but says no error

Post by mcapra »

It may also be helpful to see the output of the following command executed from the CLI of your Nagios XI machine:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Former Nagios employee
https://www.mcapra.com/
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Apply Config throws error but says no error

Post by SavaSC »

mcapra wrote:It may also be helpful to see the output of the following command executed from the CLI of your Nagios XI machine:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
OK. I had to take 2 screen shots to get it all. Capture1.PNG is the last of the output.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Apply Config throws error but says no error

Post by lmiltchev »

Do you see any config errors when go to the CCM > Tools > Config File Management, and click on the following buttons in the exact same order: Delete Files, Write Configs, and Verify Files?

If you don't see any errors, try to apply configuration. If this still fails, run the following commands, and show the output:

Code: Select all

chage -l nagios
chage -l apache
sestatus
ls -la /usr/local/nagiosxi/scripts/nagiosql*
Also, start a running tail on the cmdsubsys.log, and redirect the output to a text file:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/debug.txt
While the tail is running, apply configuration in the web UI. When this is done (you see an error in the web UI), go back to the terminal, and stop the tail by pressing "Ctrl + c". Next, post the "debug.txt" file that was generated in the "/tmp" directory.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked