From: Heikki Levanto Date: Mon, 15 Aug 2011 08:39:39 +0000 (+0200) Subject: Summary on first line, for nagiosgrapher X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a8888d99b3762d80d6403ac44a60cc30985e3434;p=git-tools-moved-to-github.git Summary on first line, for nagiosgrapher --- 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;