Page 1 of 2
Nagios service goes into exited state after apply config
Posted: Wed Mar 03, 2021 9:48 am
by bsanjay
Hello Team,
We have Nagios XI 5.8.1 installed and since last week we are seeing something abnormal that whenever we make some changes and apply configuration nagios service goes into exited state which results into loss of historical data. Please find the below screenshot for your refenrence,
Best Regards,
bsanjay
Re: Nagios service goes into exited state after apply config
Posted: Wed Mar 03, 2021 4:11 pm
by dchurch
Applying config necessarily involves
restarting the monitoring engine, but it should come back online almost immediately.
Apply config also puts an extra step in there to verify the configs, to ensure that in the event of a configuration issue, the monitoring engine won't try and fail to come back online.
What's the output from the following command?:
If the service failed to restart when you applied config, any error messages would be in
/usr/local/nagiosxi/var/cmdsubsys.log
Re: Nagios service goes into exited state after apply config
Posted: Thu Mar 04, 2021 10:01 am
by bsanjay
Hello dchurch,
Apply config completes successfully. Please find the screenshots attached,
Note - this happens randomly and not everytime we apply configuration.
Best Regards,
bsanjay
Re: Nagios service goes into exited state after apply config
Posted: Thu Mar 04, 2021 12:02 pm
by dchurch
If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.
If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting
/usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
Re: Nagios service goes into exited state after apply config
Posted: Fri Mar 05, 2021 12:56 pm
by bsanjay
Hello dchurch,
I did PM you the latest system profile. Please do the needful.
Best Regards,
Sanjay Batkura
Re: Nagios service goes into exited state after apply config
Posted: Mon Mar 08, 2021 1:04 pm
by dchurch
What is the output from the following commands?
Code: Select all
ls -la /usr/local/nagios/var/spool/xidpe | head -50
find /usr/local/nagios/var/spool/xidpe |wc -l
ls -la /usr/local/nagiosxi/nom/checkpoints/nagioscore
Re: Nagios service goes into exited state after apply config
Posted: Tue Mar 09, 2021 9:31 am
by bsanjay
Hello dchurch,
Please find the ouput of requested commands attached.
Best Regards,
bsanjay
Re: Nagios service goes into exited state after apply config
Posted: Tue Mar 09, 2021 2:39 pm
by dchurch
Can you run this command? Even just capturing the first few lines would be helpful to me:
Code: Select all
ls -la /usr/local/nagiosxi/nom/checkpoints/nagioscore
Re: Nagios service goes into exited state after apply config
Posted: Wed Mar 10, 2021 9:55 am
by bsanjay
Hello dchurch,
Please find the output of requested command attached.
Best Regards,
bsanjay
Re: Nagios service goes into exited state after apply config
Posted: Wed Mar 10, 2021 2:55 pm
by dchurch
Your permissions may be messed up, try executing the following commands:
Code: Select all
/usr/local/nagiosxi/scripts/reset_config_perms.sh
chown -R nagios:nagios /usr/local/nagios/etc /usr/local/nagiosxi/nom/checkpoints/nagioscore
find /usr/local/nagios/etc -type d -exec chmod 775 '{}' + -o \
-type f -exec chmod 664 '{}' +