Page 1 of 2

error occurred when restored NagiosXI and DeActive some item

Posted: Tue Nov 26, 2019 3:32 am
by xpertech
After restored NagiosXI configuration, then DeActive some items, when apply configuration, it failed?!

Re: error occurred when restored NagiosXI and DeActive some

Posted: Tue Nov 26, 2019 2:01 pm
by cdienger
What items did you deactivate? Are you able to apply configuration if you activate them?

The error indicates an issue with a service escalation under Configure > Core Config Manager > Alerting > Service Escalations not having a proper hostname or description set. What do the configurations under there look like?

Errors like this can also be caused from configurations gettings stuck in /usr/local/nagios/etc/import/. Remove any files you may find in there and try applying the configuration again.

Re: error occurred when restored NagiosXI and DeActive some

Posted: Fri Nov 29, 2019 11:05 am
by xpertech
information ...1

Re: error occurred when restored NagiosXI and DeActive some

Posted: Fri Nov 29, 2019 11:14 am
by xpertech
information ...2

Re: error occurred when restored NagiosXI and DeActive some

Posted: Mon Dec 02, 2019 1:55 pm
by ssax
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):

Code: Select all

tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.log
Then try to apply configuration through the web interface and once it completes/errors send me the full output from the tail command above.


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.

Re: error occurred when restored NagiosXI and DeActive some

Posted: Tue Dec 03, 2019 10:26 am
by xpertech
still problem ...

Re: error occurred when restored NagiosXI and DeActive some

Posted: Tue Dec 03, 2019 10:33 am
by xpertech
attachment ...

Re: error occurred when restored NagiosXI and DeActive some

Posted: Tue Dec 03, 2019 3:46 pm
by scottwilkerson
Did you do the following?
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):

Code: Select all

tail -Fn0 /usr/local/nagiosxi/var/cmdsubsys.log
Then try to apply configuration through the web interface and once it completes/errors send me the full output from the tail command above.


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.
Also, 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?

We also need to see if all items are running properly.

Re: error occurred when restored NagiosXI and DeActive some

Posted: Wed Dec 04, 2019 7:45 am
by xpertech
Already PM you...

Re: error occurred when restored NagiosXI and DeActive some

Posted: Wed Dec 04, 2019 8:09 am
by scottwilkerson
Looks like the service cannot restart

Can you show the output of

Code: Select all

systemctl status nagios.service
then lets run

Code: Select all

systemctl stop nagios
killall -9 nagios
rm -f /var/run/nagios.lock
systemctl start nagios