nagiosxi does not display correctly after restart

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

nagiosxi does not display correctly after restart

Post by s.wiki »

Hi,
I am having an issue:
1. when i restart server.
2. when i restart nagios.

Code: Select all

my restart nagios steps:
service nagiosxi stop
service npcd stop
service ndo2db stop
service nagios stop
service postgresql stop
service mysqld stop
service httpd stop

service httpd start
service mysqld start
service postgresql start
service nagios start
service ndo2db start
service npcd start
service nagiosxi start
my nagiosxi will not display the status correctly.
However if i use nagioscore to view it, everything seems normal.
what i need to do is go to CCM, and click Apply Configuration, then nagiosxi will display correctly.

Kindly assist, Thanks
please refer to the attachment.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nagiosxi does not display correctly after restart

Post by npolovenko »

Hello, @s.wiki. I believe apply configuration runs service nagios reload under the hood. By restarting a server did you mean actually restarting the VM, or the server computer? Or did you mean running the commands that you listed above? I'd probably start with reviewing major log files for errors. Could you send in your Nagios XI System Profile so I can review it?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and attach it to your next post. Or you can upload it to the cloud service of your choice and share a link in a PM.

Also, is there a particular reason that you wanted to restart all services on your Nagios system?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagiosxi does not display correctly after restart

Post by s.wiki »

npolovenko wrote:Hello, @s.wiki. I believe apply configuration runs service nagios reload under the hood. By restarting a server did you mean actually restarting the VM, or the server computer? Or did you mean running the commands that you listed above? I'd probably start with reviewing major log files for errors. Could you send in your Nagios XI System Profile so I can review it?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and attach it to your next post. Or you can upload it to the cloud service of your choice and share a link in a PM.

Also, is there a particular reason that you wanted to restart all services on your Nagios system?
Thanks for your reply.

1. I restart the vm because I will need to bring it shutdown and bring up at the RC side.
2. The command i listed above is a standard steps for me to gracefully restart nagios service. *kindly advise if i am doing this wrong.

Restart VM or restart nagios service will cause the display problem.

I have sent you the profile.zip via PM, kindly check.



Thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nagiosxi does not display correctly after restart

Post by npolovenko »

@s.wiki, I received your profile, thank you.
The command i listed above is a standard steps for me to gracefully restart nagios service. *kindly advise if i am doing this wrong.
Normally, i'd run service nagios stop, service httpd stop and then run a soft shutdown or a soft restart command:

Code: Select all

shutdown -h
or

Code: Select all

shutdown -r
The key here is doing a soft shutdown on the VM before turning it off. I wouldn't turn off any other services manually.

Please open the following configuration file:
/usr/local/nagios/etc/pnp/process_perfdata.cfg
And increase the timeout value:

Code: Select all

TIMEOUT = 40
After that please run:

Code: Select all

service npcd restart
You can now check to see if the issue has been resolved after a soft restart.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagiosxi does not display correctly after restart

Post by s.wiki »

npolovenko wrote:@s.wiki, I received your profile, thank you.
The command i listed above is a standard steps for me to gracefully restart nagios service. *kindly advise if i am doing this wrong.
Normally, i'd run service nagios stop, service httpd stop and then run a soft shutdown or a soft restart command:

Code: Select all

shutdown -h
or

Code: Select all

shutdown -r
The key here is doing a soft shutdown on the VM before turning it off. I wouldn't turn off any other services manually.

Please open the following configuration file:
/usr/local/nagios/etc/pnp/process_perfdata.cfg
And increase the timeout value:

Code: Select all

TIMEOUT = 40
After that please run:

Code: Select all

service npcd restart
You can now check to see if the issue has been resolved after a soft restart.
Hi , I have run the following steps:
edit timeout=40 /usr/local/nagios/etc/pnp/process_perfdata.cfg
service npcd restart
service nagios stop
service httpd stop
shutdown -r now

after reboot, the display issue still persist.
Kindly advise. THanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nagiosxi does not display correctly after restart

Post by npolovenko »

@s.wiki, Have you modified anything in the XI recently? How long did you wait for the data to show up after the reboot?
Please navigate to:

Code: Select all

/usr/local/nagiosxi/scripts
And run the script called reset_config_perms.sh:

Code: Select all

./reset_config_perms.sh
Let us know if that fixed your issue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked