summaryrefslogtreecommitdiffstats
path: root/web/attachments/206988-check_apt.p1
blob: 0d8c58466ffe58175dfc671512b39e5a8cfe6c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: check_apt.c
===================================================================
--- check_apt.c	(revision 2)
+++ check_apt.c	(working copy)
@@ -115,7 +115,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|available_upgrades=%d;;;0 critical_updates=%d;;;0\n"),
 	       state_text(result),
 	       packages_available,
 	       (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade",
@@ -123,7 +123,9 @@
 	       (stderr_warning)?" warnings detected":"",
 	       (stderr_warning && exec_warning)?",":"",
 	       (exec_warning)?" errors detected":"",
-	       (stderr_warning||exec_warning)?". run with -v for information.":""
+	       (stderr_warning||exec_warning)?". run with -v for information.":"",
+	        packages_available,
+		   sec_count
 	       );
 
 	return result;