Caught SIGTERM

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Caught SIGTERM

Post by Pratapa »

Hi,

We are using Nagios XI.

Following message is continously appearing in the alert history of a host.

Caught SIGTERM, shutting down...

What does this interpret.

Pratap
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Caught SIGTERM

Post by gormank »

I think more info, such as nearby messages from nagios.log are needed.
SIG means signal, and TERM means terminate, so a process got a terminate signal from (I'd guess) NRPE or NCPA, possibly because the length of time to run a check exceeded the defined timeout.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Caught SIGTERM

Post by pbroste »

Hello Pratap,

Thanks for reaching out today about the service shutdowns you are experiencing.

I see that there was a previous post referring to brokers, so you may want to make note of that while you are reviewing the nagios logs looking for these error messages.

Code: Select all

cat /usr/local/nagios/var/nagios.log

Here is the configuration file '/usr/local/nagios/etc/nagios.cfg' for any brokers like ndo or mod_gearman.

Code: Select all

grep -Ei 'broker' /usr/local/nagios/etc/nagios.cfg
Thanks,
Perry
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Re: Caught SIGTERM

Post by Pratapa »

Following are the nearby messages.

[07-11-2021 02:00:15] HOST DOWNTIME ALERT: CS-GP-JJ-GG678-M02-02;STARTED; Host has entered a period of scheduled downtime
Program Start[07-11-2021 02:00:03] Nagios 4.4.6 starting... (PID=2713)
Program End[07-11-2021 02:00:02] Caught SIGTERM, shutting down...
Program End[07-11-2021 02:00:02] Caught SIGTERM, shutting down...
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Re: Caught SIGTERM

Post by Pratapa »

July 10, 2021 02:00

Program End[07-10-2021 02:00:03] Caught SIGTERM, shutting down...

July 09, 2021 21:00

Host entered a period of scheduled downtime[07-09-2021 21:00:00] HOST DOWNTIME ALERT: CS-GP-JJ-GG678-F02-01;STARTED; Host has entered a period of scheduled downtime

July 09, 2021 20:00

Program Start[07-09-2021 20:14:52] Nagios 4.4.6 starting... (PID=27039)
Program End[07-09-2021 20:14:51] Caught SIGTERM, shutting down...
Program End[07-09-2021 20:14:51] Caught SIGTERM, shutting down...
Program End[07-09-2021 20:14:51] Caught SIGTERM, shutting down...

July 09, 2021 07:00

Host exited from a period of scheduled downtime[07-09-2021 07:00:00] HOST DOWNTIME ALERT: CS-GP-JJ-GG678-F02-01;STOPPED; Host has exited from a period of scheduled downtime

July 09, 2021 02:00

Host entered a period of scheduled downtime[07-09-2021 02:00:14] HOST DOWNTIME ALERT: CS-GP-JJ-GG678-F02-01;STARTED; Host has entered a period of scheduled downtime
Program Start[07-09-2021 02:00:03] Nagios 4.4.6 starting... (PID=14324)
Program End[07-09-2021 02:00:03] Caught SIGTERM, shutting down...
Program End[07-09-2021 02:00:03] Caught SIGTERM, shutting down...




Why Nagios process is restarting these many times. What made the Nagios process to restart.
Locked