[Pkg-nagios-devel] Bug#590941: Bug#590941: nagios-plugins-basic: check_apt -v outputs in wrong order

Christoph Martin martin at uni-mainz.de
Fri Jul 30 14:32:44 UTC 2010

Hi Jan,

schrieb Jan Wagner am 07/30/10 16:24:
> Hi Christoph,
> On Friday, 30. July 2010, Christoph Martin wrote:
>> The output of check_apt with the -v option is at the moment the following:
>> # /usr/lib/nagios/plugins/check_apt -v
>> Inst ldap-utils [2.4.11-1+lenny1] (2.4.11-1+lenny2
>> Debian-Security:5.0/stable) [] **Inst ldap-utils [2.4.11-1+lenny1]
>> (2.4.11-1+lenny2 Debian-Security:5.0/stable) [] Inst libldap-2.4-2
>> [2.4.11-1+lenny1] (2.4.11-1+lenny2 Debian-Security:5.0/stable) **Inst
>> libldap-2.4-2 [2.4.11-1+lenny1] (2.4.11-1+lenny2
>> Debian-Security:5.0/stable) Conf libldap-2.4-2 (2.4.11-1+lenny2
>> Debian-Security:5.0/stable)
>> Conf ldap-utils (2.4.11-1+lenny2 Debian-Security:5.0/stable)
>> APT CRITICAL: 2 packages available for upgrade (2 critical updates).
>> Nagios displays in the Service Status Detail page for all Hosts for
>> each service the *first* line of each plugins output. So it displays
>> for this example:
>> Inst ldap-utils [2.4.11-1+lenny1] (2.4.11-1+lenny2
>> Debian-Security:5.0/stable) []
>> instead of
>> APT CRITICAL: 2 packages available for upgrade (2 critical updates).
>> So, this last line should appear as first line of the output instead.
> what exactly is the reason for calling check_apt with "-v" when you are using 
> it with nagios? I mean, using just "check_apt" is providing you all 
> information you need, when using it via nagios.

As I said, on the overview page I get one line for each service using -v:

debianbuild64 | Package Update | CRITICAL 	2010-07-30 16:23:46 	0d 8h
42m 14s 	3/3 	Inst libldap-2.4-2 [2.4.11-1+lenny1] (2.4.11-1+lenny2

or without -v:

localhost | Package Updates | CRITICAL 	2010-07-30 16:23:52 	0d 9h 8m
24s 	4/4 	APT CRITICAL: 1 packages available for upgrade (1 critical

But when you click on the Service Description "Package Updates" you get
more details about this particular service check. Here you would get all
the output lines of the plugin. A lot of plugins use this feature to
provide extended information.

For check_apt it would get a quick way to find out which patches are be


Christoph Martin, Zentrum für Datenverarbeitung, Uni-Mainz, Germany
 Instant-Messaging: Jabber: martin at uni-mainz.de
  (Siehe http://www.zdv.uni-mainz.de/4010.php)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martin.vcf
Type: text/x-vcard
Size: 374 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20100730/f793107b/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20100730/f793107b/attachment.pgp>

More information about the Pkg-nagios-devel mailing list