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
Caught SIGTERM
Re: Caught SIGTERM
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.
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.
Re: Caught SIGTERM
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.
Here is the configuration file '/usr/local/nagios/etc/nagios.cfg' for any brokers like ndo or mod_gearman.
Thanks,
Perry
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
Perry
Re: Caught SIGTERM
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...
[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...
Re: Caught SIGTERM
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.
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.