Page 1 of 1

Caught SIGTERM shutting down

Posted: Fri Nov 12, 2021 1:47 pm
by gregwhite
Today NagiosXI suddenly stopped. When I checked the event log I found an error "Caught SIGTERM shutting down". I restarted Nagios and it seems to be working now. My concern is if it happens again and goes unnoticed. What causes this and can it be prevented?

Thanks,
Greg

Re: Caught SIGTERM shutting down

Posted: Mon Nov 15, 2021 1:12 pm
by pbroste
Hello @gregwhite

Thanks for reaching out, typically the SIGTERMā€ signal indicates that some process is sent a signal to shutdown a process or service for various reasons. Suggestion to take a look at the events that surround the "SIGTERM" may find another event that caused it. So when a process receives SIGTERM, some other process sent that signal:

Code: Select all

grep -Eir "Caught SIGTERM|Caught SIGSEGV" /usr/local/nagios/var/nagios.log /var/log/messages /var/log/syslog --color=always -A 4 -B 2 | less -SR
Want to check to see if there are any Add-on brokers configured:(like mod_gearman, livestatus, ndo, etc)

Code: Select all

grep broker /usr/local/nagios/etc/nagios.cfg
Here is also a support article that goes over some optimizations that you can check.

https://assets.nagios.com/downloads/nag ... uning.html

Thanks,
Perry