Page 1 of 1
nagiosxi does not display correctly after restart
Posted: Tue Nov 21, 2017 11:25 pm
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.
Re: nagiosxi does not display correctly after restart
Posted: Wed Nov 22, 2017 11:08 am
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?
Re: nagiosxi does not display correctly after restart
Posted: Wed Nov 22, 2017 11:31 pm
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
Re: nagiosxi does not display correctly after restart
Posted: Mon Nov 27, 2017 11:21 am
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:
or
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:
After that please run:
You can now check to see if the issue has been resolved after a soft restart.
Re: nagiosxi does not display correctly after restart
Posted: Mon Nov 27, 2017 10:17 pm
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:
or
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:
After that please run:
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
Re: nagiosxi does not display correctly after restart
Posted: Tue Nov 28, 2017 12:14 pm
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:
And run the script called reset_config_perms.sh:
Let us know if that fixed your issue.