Nagios service goes into exited state after apply config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Nagios service goes into exited state after apply config

Post 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
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Nagios service goes into exited state after apply config

Post 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?:

Code: Select all

sudo service nagios start
If the service failed to restart when you applied config, any error messages would be in /usr/local/nagiosxi/var/cmdsubsys.log
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: Nagios service goes into exited state after apply config

Post 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
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Nagios service goes into exited state after apply config

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: Nagios service goes into exited state after apply config

Post by bsanjay »

Hello dchurch,
I did PM you the latest system profile. Please do the needful.


Best Regards,
Sanjay Batkura
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Nagios service goes into exited state after apply config

Post 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
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: Nagios service goes into exited state after apply config

Post by bsanjay »

Hello dchurch,
Please find the ouput of requested commands attached.

Best Regards,
bsanjay
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Nagios service goes into exited state after apply config

Post 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
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: Nagios service goes into exited state after apply config

Post by bsanjay »

Hello dchurch,
Please find the output of requested command attached.

Best Regards,
bsanjay
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Nagios service goes into exited state after apply config

Post 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 '{}' +
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked