[nagiosplug] plugins/t/check_apt.t: Expect performance data

"Nagios Plugin Development" <[email protected]> Sat, 17 Aug 2013 20:50:55 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: 29b2dfab4f6294643623572feb91f0e0f802d654
 Author: Holger Weiss <[email protected]>
   Date: Sat Aug 17 21:52:50 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=29b2dfa

plugins/t/check_apt.t: Expect performance data

The check_apt plugin now emits performance data, fix the test(s)
accordingly.

---

 plugins/t/check_apt.t |    4 ++--
 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 {
     } else {
 	$status = "CRITICAL";
     }
-    return sprintf('/^APT %s: %d packages available for upgrade \(%d critical updates\).\s*$/',
-	$status, $warning, $critical);
+    return sprintf('/^APT %s: %d packages available for upgrade \(%d critical updates\)\. |available_upgrades=%d;;;0 critical_updates=%d;;;0$/',
+	$status, $warning, $critical, $warning, $critical);
 }
 
 if (-x "./check_apt") {


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk