From a8888d99b3762d80d6403ac44a60cc30985e3434 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Mon, 15 Aug 2011 10:39:39 +0200 Subject: [PATCH] Summary on first line, for nagiosgrapher --- aptcheck/aptcheck.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aptcheck/aptcheck.pl b/aptcheck/aptcheck.pl index 7c9245b..de1708b 100755 --- a/aptcheck/aptcheck.pl +++ b/aptcheck/aptcheck.pl @@ -18,6 +18,7 @@ # # 11-Mar-2011 Heikki: Started this # 22-Mar-2011 Heikki: Adding manually maintained packages +# 15-Aug-2011 Heikki: Adding a total in the headline, for nagiosgrapher # # TODO: Assumes that we release our restricted packages for all versions # and architectures at the same time. Gets only the highest version from @@ -36,6 +37,7 @@ my %hostcomments = ( "bellone" => "Niels Erik does the manual upgrades", "cfrepous" => "Wolfram does the manual upgrades", "leopard" => "Wolfram does the manual upgrades", + "lsd" => "Heikki takes care of all upgrades", ); @@ -239,6 +241,9 @@ print F "\n"; print F "Apt upgrade status\n"; print F "\n"; print F "

Apt package status

\n"; +print F "" . ( $sectot + $owntot + $mantot + $normtot ) . + " packages pending, including $sectot security \n"; + print F "

Debug run, many hosts missing!

\n" if $debug; -- 1.7.10.4