Apply Config throws error but says no error
Apply Config throws error but says no error
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.
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.
Re: Apply Config throws error but says no error
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
Re: Apply Config throws error but says no error
OK, please find it attached.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
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.
Re: Apply Config throws error but says no error
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Apply Config throws error but says no error
bolson wrote:Can you run this again and post the result?Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Ummm... OK. Here you go.
You do not have the required permissions to view the files attached to this post.
Re: Apply Config throws error but says no error
I think these configuration warnings could be the culprit. Please attach your /usr/local/nagios/etc/nagios.cfg.
Thank you!
Thank you!
Re: Apply Config throws error but says no error
Here you go. Thank you for looking.
You do not have the required permissions to view the files attached to this post.
Re: Apply Config throws error but says no error
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/
https://www.mcapra.com/
Re: Apply Config throws error but says no error
OK. I had to take 2 screen shots to get it all. Capture1.PNG is the last of the output.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
You do not have the required permissions to view the files attached to this post.
Re: Apply Config throws error but says no error
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:
Also, start a running tail on the cmdsubsys.log, and redirect the output to a text file:
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.
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*
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/debug.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!