summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-08-17 19:52:50 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-08-17 19:52:50 (GMT)
commit29b2dfab4f6294643623572feb91f0e0f802d654 (patch)
tree68f8202a374dad9ffbd8ff69cedcee31c7057808
parent30bf8025d2ccb7c1fdcf4f69ed543cba4e753625 (diff)
downloadmonitoring-plugins-29b2dfab4f6294643623572feb91f0e0f802d654.tar.gz
plugins/t/check_apt.t: Expect performance data
The check_apt plugin now emits performance data, fix the test(s) accordingly.
-rw-r--r--plugins/t/check_apt.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_apt.t b/plugins/t/check_apt.t
index 7123097..9ba0ff8 100644
--- a/plugins/t/check_apt.t
+++ b/plugins/t/check_apt.t
@@ -18,8 +18,8 @@ sub make_result_regexp {
18 } else { 18 } else {
19 $status = "CRITICAL"; 19 $status = "CRITICAL";
20 } 20 }
21 return sprintf('/^APT %s: %d packages available for upgrade \(%d critical updates\).\s*$/', 21 return sprintf('/^APT %s: %d packages available for upgrade \(%d critical updates\)\. |available_upgrades=%d;;;0 critical_updates=%d;;;0$/',
22 $status, $warning, $critical); 22 $status, $warning, $critical, $warning, $critical);
23} 23}
24 24
25if (-x "./check_apt") { 25if (-x "./check_apt") {