error occurred when restored NagiosXI and DeActive some item
Posted: Tue Nov 26, 2019 3:32 am
After restored NagiosXI configuration, then DeActive some items, when apply configuration, it failed?!
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.logCode: Select all
zip -r /tmp/NAGIOSBADFILES.zip /usr/local/nagios/etcAlso, I noted that in your first screenshot there was the red ! next to your username in the upper right. Can you go to Admin -> System Status and send a screenshot of the status?ssax wrote:Please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then click the Verify Files button, if it verifies properly, please try to Apply Configuration
That alone may fix it.
If it fails again, please do this (in these exact steps):
Please run this tail command (and leave it running):
Then try to apply configuration through the web interface and once it completes/errors send me the full output from the tail command above.Code: Select all
tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.log
If all that doesn't fix it, do this:
Go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Once they are done being written (don't do anything in between, don't apply config or anything), run this command and send me the resulting /tmp/NAGIOSBADFILES.zip file:
Code: Select all
zip -r /tmp/NAGIOSBADFILES.zip /usr/local/nagios/etc
Please send me a copy of your profile as well, you can download it from Admin > System Profile > Download Profile and upload it to the ticket by clicking the "choose item" link at the bottom of the menu. Make sure to wait until the file is finished uploading before clicking the Post Reply button.
Code: Select all
systemctl status nagios.serviceCode: Select all
systemctl stop nagios
killall -9 nagios
rm -f /var/run/nagios.lock
systemctl start nagios