Page 1 of 2

Nagios XI Process State not Running

Posted: Sat Feb 17, 2024 3:25 am
by fowfo
Hi there,

My server ran out of disk space and ceased nagios from running. After freeing up some space and running /usr/local/nagiosxi/scripts/repair_databases.sh, everything seems to be back to normal, i.e all System Component statuses are green.
However, the Monitoring Process Engine state is red only under Monitoring Engine Status. Now Monitoring Engine Check Statistics are all 0 as if no checks are being run. When I however check Nagios Core, it seems to be working perfectly. Its almost as if Nagios XI is "frozen".
Any support will be really appreciated. Thanks.

Using Nagios XI 5.8.7

Re: Nagios XI Process State not Running

Posted: Mon Feb 19, 2024 10:19 am
by danderson
Thanks for reaching out @fowfo,

Do this happen even after restarting nagios, mysql, apache/httpd, and if relevant, php-fpm? Are there any errors in log files for those processes that might indicate some sort of bug or error?

Re: Nagios XI Process State not Running

Posted: Tue Feb 20, 2024 5:37 am
by kg2857
Restart the server.
systemctl restart nagios
Read the output.

Re: Nagios XI Process State not Running

Posted: Tue Feb 20, 2024 2:09 pm
by jmichaelson
Check the output of journalctl -xeu (service name), for each of the services mentioned by danderson.

Re: Nagios XI Process State not Running

Posted: Wed Feb 28, 2024 10:27 am
by hillhealthcenter
Hello All,
I am facing this same issue. What is the command to restart the Nagios service?

Re: Nagios XI Process State not Running

Posted: Wed Feb 28, 2024 10:37 am
by sgardil
hillhealthcenter wrote: Wed Feb 28, 2024 10:27 am Hello All,
I am facing this same issue. What is the command to restart the Nagios service?
To restart nagios you should be able to just run:
systemctl restart nagios

Re: Nagios XI Process State not Running

Posted: Wed Feb 28, 2024 11:52 am
by hillhealthcenter
Thanks, sgardil!

The /usr/local/nagiosxi/scripts/repair_databases.sh script seems to allow the system to function normally for a few minutes. The system freezes again after 10 to 20 minutes.

Re: Nagios XI Process State not Running

Posted: Wed Feb 28, 2024 2:29 pm
by hillhealthcenter
We appear to be in a better state.

We had to run the manual backup script

Code: Select all

/usr/local/nagiosxi/scripts/backup_xi.sh
to resolve the freezing issue. It seems that the disk may have run out space during a backup.

Re: Nagios XI Process State not Running

Posted: Thu Feb 29, 2024 10:33 am
by sgardil
Thanks for sharing the solution for your issues and yeah that would do it. When you ran the script manually did you run the database repair script beforehand and then immediately manually run the back up script?

Re: Nagios XI Process State not Running

Posted: Thu Feb 29, 2024 10:49 am
by hillhealthcenter
Yes, we ran the
  • repair_databases.sh
then ran the
  • backup_xi.sh
.