diff options
Diffstat (limited to 'web/attachments/206988-check_apt.p1')
-rw-r--r-- | web/attachments/206988-check_apt.p1 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/web/attachments/206988-check_apt.p1 b/web/attachments/206988-check_apt.p1 new file mode 100644 index 0000000..0d8c584 --- /dev/null +++ b/web/attachments/206988-check_apt.p1 | |||
@@ -0,0 +1,24 @@ | |||
1 | Index: check_apt.c | ||
2 | =================================================================== | ||
3 | --- check_apt.c (revision 2) | ||
4 | +++ check_apt.c (working copy) | ||
5 | @@ -115,7 +115,7 @@ | ||
6 | result = max_state(result, STATE_OK); | ||
7 | } | ||
8 | |||
9 | - printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s\n"), | ||
10 | + printf(_("APT %s: %d packages available for %s (%d critical updates). %s%s%s%s|available_upgrades=%d;;;0 critical_updates=%d;;;0\n"), | ||
11 | state_text(result), | ||
12 | packages_available, | ||
13 | (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade", | ||
14 | @@ -123,7 +123,9 @@ | ||
15 | (stderr_warning)?" warnings detected":"", | ||
16 | (stderr_warning && exec_warning)?",":"", | ||
17 | (exec_warning)?" errors detected":"", | ||
18 | - (stderr_warning||exec_warning)?". run with -v for information.":"" | ||
19 | + (stderr_warning||exec_warning)?". run with -v for information.":"", | ||
20 | + packages_available, | ||
21 | + sec_count | ||
22 | ); | ||
23 | |||
24 | return result; | ||