error occurred when restored NagiosXI and DeActive some item

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

error occurred when restored NagiosXI and DeActive some item

Post by xpertech »

After restored NagiosXI configuration, then DeActive some items, when apply configuration, it failed?!
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: error occurred when restored NagiosXI and DeActive some

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: error occurred when restored NagiosXI and DeActive some

Post by xpertech »

information ...1
You do not have the required permissions to view the files attached to this post.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: error occurred when restored NagiosXI and DeActive some

Post by xpertech »

information ...2
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: error occurred when restored NagiosXI and DeActive some

Post 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.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: error occurred when restored NagiosXI and DeActive some

Post by xpertech »

still problem ...
You do not have the required permissions to view the files attached to this post.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: error occurred when restored NagiosXI and DeActive some

Post by xpertech »

attachment ...
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: error occurred when restored NagiosXI and DeActive some

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: error occurred when restored NagiosXI and DeActive some

Post by xpertech »

Already PM you...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: error occurred when restored NagiosXI and DeActive some

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked