[Pkg-monitoring-maintainers] Bug#932370: mon: remote.monitor gives Perl errors if remote server requires password

Russell Coker russell at coker.com.au
Thu Jul 18 14:52:01 BST 2019


Package: mon
Version: 1.3.3-4.1
Severity: normal

Below is what happens when trying to monitor a remote server that requires
authentication (or a server that disconnects abruptly, a server not running the
mon protocol, or many other potential protocol issues).

Firstly support for username/password authentication is a wishlist item.

Secondly having the program always display user-focused error messages rather
than Perl diagnostics is expected.

$ /usr/lib/mon/mon.d/remote.monitor server
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.
server:list_opstatus

Details for server 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



More information about the Pkg-monitoring-maintainers mailing list