[Pkg-monitoring-maintainers] Bug#932297: mon: remote.monitor gives a Perl error when server rejects connection
Russell Coker
russell at coker.com.au
Wed Jul 17 13:10:01 BST 2019
Package: mon
Version: 1.3.3-4
Severity: normal
Tags: upstream
Here's what happens when a server named "example" is set to only accept
authenticated connections from mon clients.
What I expect is just the last 2 lines about the failure message.
$ /usr/lib/mon/mon.d/remote.monitor example
Odd number of elements in hash assignment at /usr/lib/mon/mon.d/remote.monitor line 162, <GEN0> line 2.
Use of uninitialized value in list assignment at /usr/lib/mon/mon.d/remote.monitor line 162, <GEN0> line 2.
Exiting subroutine via next at /usr/lib/mon/mon.d/remote.monitor line 187, <GEN0> line 2.
Exiting eval via next at /usr/lib/mon/mon.d/remote.monitor line 187, <GEN0> line 2.
example
Details for example failure :
list_opstatus failed:520 command could not be executed, unknown command
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: default
Versions of packages mon depends on:
ii adduser 3.118
ii libc6 2.28-10
ii libtime-period-perl 1.25-1
ii mon-client 1.2.0-2
Versions of packages mon recommends:
ii bc 1.07.1-2+b1
pn fping <none>
pn libauthen-pam-perl <none>
ii libcgi-pm-perl 4.40-1
ii libcrypt-ssleay-perl 0.73.06-1+b1
ii libfilesys-df-perl 0.92-6+b4
ii libmail-imapclient-perl 3.42-1
ii libnet-dns-perl 1.19-1
pn libnet-ldap-perl <none>
pn libnet-perl <none>
pn libnet-telnet-perl <none>
ii libproc-processtable-perl 0.56-1
pn libsnmp-perl <none>
pn libstatistics-descriptive-perl <none>
pn libtime-parsedate-perl <none>
ii libtimedate-perl 2.3000-2
ii swaks 20181104.0-2
Versions of packages mon suggests:
ii mon-contrib 1.0+dfsg-4
-- Configuration Files:
/etc/mon/mon.cf changed [not included]
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/lib/mon/mon-local.d/linux-temp.monitor (from mon package)
debsums: changed file /usr/lib/mon/mon-local.d/loadavg.monitor (from mon package)
More information about the Pkg-monitoring-maintainers
mailing list