Caught SIGTERM shutting down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gregwhite
Posts: 206
Joined: Wed Jun 01, 2011 12:40 pm

Caught SIGTERM shutting down

Post 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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Caught SIGTERM shutting down

Post 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
Locked