Package: nrpe-ng
Version: 0.2.0-1
Severity: important
Dear Maintainer,
A command "/etc/init.d/nrpe-ng stop" always does not stop cleanly.
It can reproduce by following steps:
1. run command.
# /etc/init.d/nrpe-ng stop
2. wait until finish above command. (about 30 secs)
3. syslog outputs error logs.
========
May 8 15:17:22 akane nrpe-ng[27213]: Exception in callback
functools.partial(<function wrap.<locals>.null_wrapper at 0x7f1e9d07fea0>,
<Future finished exception=AttributeError("'AsyncIOMainLoop' object has no
attribute '_callbacks'",)>)#012Traceback (most recent call last):#012 File
"/usr/lib/python3/dist-packages/tornado/ioloop.py", line 759, in
_run_callback#012 ret = callback()#012 File
"/usr/lib/python3/dist-packages/tornado/stack_context.py", line 276, in
null_wrapper#012 return fn(*args, **kwargs)#012 File
"/usr/lib/python3/dist-packages/tornado/ioloop.py", line 780, in
_discard_future_result#012 future.result()#012 File
"/usr/lib/python3/dist-packages/tornado/gen.py", line 315, in wrapper#012
yielded = next(result)#012 File
"/usr/lib/python3/dist-packages/nrpe_ng/server/server.py", line 182, in
sigterm_callback#012 if not io_loop._callbacks and not
io_loop._timeouts:#012AttributeError: 'AsyncIOMainLoop' object has no attribute
'_callbacks'
========
4. run command.
# /etc/init.d/nrpe-ng start
5. nrpe-ng fails in startup.
6. remove pid file.
# rm /var/run/nagios/nrpe-ng.pid
7. run command.
# /etc/init.d/nrpe-ng start
8. nrpe-ng succeeds in startup.
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.11.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8),
LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages nrpe-ng depends on:
ii adduser 3.117
ii init-system-helpers 1.51
ii lsb-base 9.20170808
ii python3 3.6.5-1
ii python3-daemon 2.1.2-2
ii python3-pkg-resources 39.0.1-2
ii python3-requests 2.18.4-2
ii python3-tornado 5.0.2-1
ii ssl-cert 1.0.39
nrpe-ng recommends no packages.
nrpe-ng suggests no packages.
-- Configuration Files:
/etc/nagios/nrpe-ng.cfg changed:
pid_file=/run/nagios/nrpe-ng.pid
server_port=59546
ssl_cert_file=/etc/nagios/ncrt_cert.pem
ssl_key_file=/etc/nagios/ncrt_key.pem
include=/etc/nagios/nrpe_local.cfg
include_dir=/etc/nagios/nrpe.d/
dont_blame_nrpe=1
-- no debconf information