From: Heikki Levanto Date: Wed, 28 Sep 2011 15:04:10 +0000 (+0200) Subject: Minor display stuff X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=ae1dd6f8c38ac58f7e26d4ae7d9b832bfa66bc8e;p=git-tools-moved-to-github.git Minor display stuff --- diff --git a/aptcheck/aptcheck.pl b/aptcheck/aptcheck.pl index 03680ce..1d2abe7 100755 --- a/aptcheck/aptcheck.pl +++ b/aptcheck/aptcheck.pl @@ -246,7 +246,7 @@ 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"; + " packages pending ($sectot critical) \n"; print F "

Debug run, many hosts missing!

\n" if $debug; @@ -327,16 +327,33 @@ if ( %skiphosts ) { } print F "\n"; } -if ( %okhosts ) { +#if ( %okhosts ) { +if ( 1 ) { print F "Ok " . scalar(keys(%okhosts)) . "\n"; print F ""; for my $HH ( sort(keys(%okhosts)) ) { print F "$HH "; } + if ( !%okhosts ) { + print F "None at all!"; + } print F "\n"; } print F "\n"; +# Graph +#my $secs = 60*60*24 * 7 * 2; # 2 weeks in secods +my $secs = "1m"; # one month, let nagios do the math +print F "

" . + "\n". + " ". + "" . + "
\n"; # The host table print F $table;