[Pkg-nagios-devel] [Nagiosplug-devel] patch against check_ssh

folkert folkert at vanheusden.com
Sat Jul 10 19:24:58 UTC 2010


check_apt:

--- nagios-plugins-1.4.14/plugins/check_apt.c	2008-11-30 22:23:18.000000000 +0100
+++ nagios-plugins-1.4.14.new/plugins/check_apt.c	2010-07-10 21:23:51.000000000 +0200
@@ -111,7 +111,7 @@
 		result = max_state(result, STATE_OK);
 	}
 
-	printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s\n"),
+	printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s"),
 	       state_text(result),
 	       packages_available,
 	       (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade",
@@ -122,6 +122,19 @@
 	       (stderr_warning||exec_warning)?". run with -v for information.":""
 	       );
 
+	printf("|%s %s\n",   
+			perfdata ("available", packages_available, "",
+			FALSE, 0,
+			FALSE, 0,
+			FALSE, 0,
+			FALSE, 0),
+			perfdata ("critical", sec_count, "",
+			FALSE, 0,
+			FALSE, 0,
+			FALSE, 0,
+			FALSE, 0)
+		);
+
 	return result;
 }
 

Folkert van Heusden

-- 
Feeling generous? -> http://www.vanheusden.com/wishlist.php
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the Pkg-nagios-devel mailing list