[project @ steve@lobefin.net-20090204141102-wur8e1o9t90gb6wc]
[mirror/dsa-nagios.git] / dsa-nagios-nrpe-config / dsa-check-packages
index d3073b1..ee0027c 100755 (executable)
@@ -141,7 +141,8 @@ sub check_ignore {
        my ($pkg, $ignores) = @_;
 
        my $ignore_this = 0;
-       for my $ig (@$ignores) {
+       for my $ignore (@$ignores) {
+               my $ig = $ignore;
                return 1 if ($ig eq $pkg);
                if (substr($ig,0,1) eq '/') {
                        substr($ig, 0, 1, '');
@@ -204,16 +205,16 @@ my @reportform = (
          'long' => "%d out of date packages: %s",
          'short' => "%d updates",
          'status' => 'WARNING' },
-       { 'key' => 'obsolete-ignored',
-         'listpackages' => 1,
-         'long' => "%d local or obsolete packages (ignored): %s",
-         'short' => "%d obs(ign)",
-         'status' => 'OK' },
        { 'key' => 'current',
          'listpackages' => 0,
          'long' => "%d packages current.",
          'short' => "%d ok",
          'status' => 'OK' },
+       { 'key' => 'obsolete-ignored',
+         'listpackages' => 1,
+         'long' => "%d whitelisted local or obsolete packages: %s",
+         'short' => "%d obs(ignored)",
+         'status' => 'OK' },
        { 'key' => 'rc',
          'listpackages' => 1,
          'long' => "%d packages removed but not purged: %s",