I can also confirm this; from a "systemctl stop nrpe-ng.service":

Dec 18 15:25:40 web2023 systemd[1]: Stopping The next generation Nagios Remote 
Plugin Executor...
Dec 18 15:25:40 web2023 nrpe-ng[754]: received SIGTERM, shutting down...
Dec 18 15:25:40 web2023 nrpe-ng[754]: Exception in callback 
functools.partial(<bound method IOLoop._discard_future_result of <tornado.pla>
                                      Traceback (most recent call last):
                                        File 
"/usr/lib/python3/dist-packages/tornado/ioloop.py", line 741, in _run_callback
                                          ret = callback()
                                        File 
"/usr/lib/python3/dist-packages/tornado/ioloop.py", line 765, in 
_discard_future_result
                                          future.result()
                                        File 
"/usr/lib/python3/dist-packages/tornado/gen.py", line 234, in wrapper
                                          yielded = ctx_run(next, result)
                                        File 
"/usr/lib/python3/dist-packages/nrpe_ng/server/server.py", line 182, in 
sigterm_callback
                                          if not io_loop._callbacks and not 
io_loop._timeouts:
                                      AttributeError: 'AsyncIOMainLoop' object 
has no attribute '_callbacks'
Dec 18 15:27:10 web2023 systemd[1]: nrpe-ng.service: State 'stop-sigterm' timed 
out. Killing.
Dec 18 15:27:10 web2023 systemd[1]: nrpe-ng.service: Killing process 754 
(nrpe-ng) with signal SIGKILL.
Dec 18 15:27:10 web2023 systemd[1]: nrpe-ng.service: Main process exited, 
code=killed, status=9/KILL
Dec 18 15:27:10 web2023 systemd[1]: nrpe-ng.service: Failed with result 
'timeout'.
Dec 18 15:27:10 web2023 systemd[1]: Stopped The next generation Nagios Remote 
Plugin Executor.


These delays shutdowns and reboots a long time unnessarily.
Please fix this.

Also, when starting:

Dec 18 15:30:04 web2023 systemd[1]: nrpe-ng.service: Can't open PID file 
/run/nagios/nrpe-ng.pid (yet?) after start: Operation not permitted

However this is only cosmetic AFAICS.


Thanks,
Paul

Reply via email to