summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Wagner <waja@cyconet.org>2013-06-25 11:11:41 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-06-25 15:20:39 +0200
commit91b2514358df5c68e25f1ae2277225fa1d57f0d2 (patch)
treebe02579d979e26316cc9a10ec133aa8fba2e63af
parent1fd504b6117af25d3baa0c1afc5dbf7fc3c66f2c (diff)
downloadmonitoring-plugins-91b2514358df5c68e25f1ae2277225fa1d57f0d2.tar.gz
Fixed SF.net bug 1614553, Debian bug #708343, Adding performace data
-rw-r--r--plugins/check_apt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c
index 7ec2d55a..433055b5 100644
--- a/plugins/check_apt.c
+++ b/plugins/check_apt.c
@@ -116,7 +116,7 @@ int main (int argc, char **argv) {
116 result = max_state(result, STATE_OK); 116 result = max_state(result, STATE_OK);
117 } 117 }
118 118
119 printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s\n"), 119 printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s|available_upgrades=%d;;;0 critical_updates=%d;;;0\n"),
120 state_text(result), 120 state_text(result),
121 packages_available, 121 packages_available,
122 (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade", 122 (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade",
@@ -124,7 +124,9 @@ int main (int argc, char **argv) {
124 (stderr_warning)?" warnings detected":"", 124 (stderr_warning)?" warnings detected":"",
125 (stderr_warning && exec_warning)?",":"", 125 (stderr_warning && exec_warning)?",":"",
126 (exec_warning)?" errors detected":"", 126 (exec_warning)?" errors detected":"",
127 (stderr_warning||exec_warning)?". run with -v for information.":"" 127 (stderr_warning||exec_warning)?". run with -v for information.":"",
128 packages_available,
129 sec_count
128 ); 130 );
129 131
130 return result; 132 return result;