[Pkg-nagios-devel] Bug#844319: check_cups: undefined subroutine &main::parseDateDelta in warning state
Manuel Hachtkemper
hacman at math.uni-bonn.de
Mon Nov 14 12:30:54 UTC 2016
Package: nagios-plugins-contrib
Version: 14.20141104~bpo70+1
Severity: normal
Hi,
check_cups terminates in a warning state (triggered by a hanging print job) with:
Undefined subroutine &main::parseDateDelta called at /usr/lib/nagios/plugins/check_cups line 378.
The problem is that the script calls parseDateDelta (which is nonexistent) instead of ParseDateDelta (Date::Manip) with a capital P. (However, in a critical state ParseDateDelta is actually written correctly...)
The following patch fixes the issue:
--- check_cups.orig 2016-11-14 13:06:47.218760340 +0100
+++ check_cups 2016-11-14 13:08:47.171046295 +0100
@@ -375,7 +375,7 @@
my( $age, $jobs ) = ( $warning{$queue}->{age}, $warning{$queue}->{jobs} );
- my( $prettyage ) = prettyDelta( parseDateDelta( "$age minutes" ) );
+ my( $prettyage ) = prettyDelta( ParseDateDelta( "$age minutes" ) );
my( @messages );
Best regards,
Manuel Hachtkemper
-- System Information:
Debian Release: 7.11
APT prefers oldstable
APT policy: (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10.104.wap (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
nagios-plugins-contrib depends on no packages.
Versions of packages nagios-plugins-contrib recommends:
ii binutils 2.22-8+deb7u3
pn freeipmi-tools <none>
ii ldap-utils 2.4.31-2+deb7u2
ii libc6 2.13-38+deb7u11
pn libdata-validate-domain-perl <none>
pn libdata-validate-ip-perl <none>
ii libdate-manip-perl 6.32-1
pn libdbd-mysql-perl <none>
ii libio-socket-ssl-perl 1.76-2
ii libipc-run-perl 0.92-1
ii liblocale-gettext-perl 1.05-7+b1
pn liblwp-useragent-determined-perl <none>
pn libmail-imapclient-perl <none>
pn libmemcached10 <none>
ii libnagios-plugin-perl 0.36-1
ii libnet-cups-perl 0.60-1+b2
ii libnet-dns-perl 0.66-2+b2
pn libnet-dns-sec-perl <none>
pn libnet-smtp-ssl-perl <none>
pn libnet-smtp-tls-perl <none>
pn libnet-snmp-perl <none>
ii libnet-ssleay-perl 1.48-1+b1
ii libreadonly-perl 1.03-4
ii libtimedate-perl 1.2000-1
pn libvarnishapi1 <none>
pn libwebinject-perl <none>
ii libyaml-syck-perl 1.20-1
ii lsof 4.86+dfsg-1
pn nagios-plugins-basic <none>
ii openssl 1.0.1t-1+deb7u1
ii perl 5.14.2-21+deb7u4
ii perl-base [libsocket-perl] 5.14.2-21+deb7u4
ii procps 1:3.3.3-3
ii python 2.7.3-4+deb7u1
pn python-pymongo <none>
ii ruby 1:1.9.3
ii ruby1.9.1 [ruby-interpreter] 1.9.3.194-8.1+deb7u5
ii snmp 5.4.3~dfsg-2.8+deb7u1
pn whois <none>
Versions of packages nagios-plugins-contrib suggests:
pn backuppc <none>
pn cciss-vol-status <none>
pn expect <none>
ii moreutils 0.47
pn mpt-status <none>
pn nagios-plugin-check-multi <none>
pn percona-toolkit <none>
ii perl-doc 5.14.2-21+deb7u4
pn smstools <none>
-- no debconf information
More information about the Pkg-nagios-devel
mailing list