diff options
Diffstat (limited to 'web/attachments/206987-check_procs.p1')
| -rw-r--r-- | web/attachments/206987-check_procs.p1 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/web/attachments/206987-check_procs.p1 b/web/attachments/206987-check_procs.p1 new file mode 100644 index 0000000..51070bc --- /dev/null +++ b/web/attachments/206987-check_procs.p1 | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Index: check_procs.c | ||
| 2 | =================================================================== | ||
| 3 | --- check_procs.c (revision 1) | ||
| 4 | +++ check_procs.c (working copy) | ||
| 5 | @@ -303,7 +303,8 @@ | ||
| 6 | printf (_("%d crit, %d warn out of "), crit, warn); | ||
| 7 | } | ||
| 8 | } | ||
| 9 | - printf (ngettext ("%d process", "%d processes", (unsigned long) procs), procs); | ||
| 10 | + | ||
| 11 | + printf (ngettext ("%d process|processes=%d;;;0", "%d processes|processes=%d;;;0", (unsigned long) procs), procs, procs, procs); | ||
| 12 | |||
| 13 | if (strcmp(fmt,"") != 0) { | ||
| 14 | printf (_(" with %s"), fmt); | ||
| 15 | @@ -437,8 +438,8 @@ | ||
| 16 | break; | ||
| 17 | else | ||
| 18 | prog = optarg; | ||
| 19 | - asprintf (&fmt, _("%s%scommand name '%s'"), (fmt ? fmt : ""), (options ? ", " : ""), | ||
| 20 | - prog); | ||
| 21 | + asprintf (&fmt, _("%s%s"), (fmt ? fmt : ""), (options ? ", " : ""), | ||
| 22 | + prog); | ||
| 23 | options |= PROG; | ||
| 24 | break; | ||
| 25 | case 'a': /* args (full path name with args) */ | ||
| 26 | @@ -447,7 +448,6 @@ | ||
| 27 | break; | ||
| 28 | else | ||
| 29 | args = optarg; | ||
| 30 | - asprintf (&fmt, "%s%sargs '%s'", (fmt ? fmt : ""), (options ? ", " : ""), args); | ||
| 31 | options |= ARGS; | ||
| 32 | break; | ||
| 33 | case 'r': /* RSS */ | ||
| 34 | Index: check_procs.c | ||
| 35 | =================================================================== | ||
| 36 | --- check_procs.c (revision 2) | ||
| 37 | +++ check_procs.c (working copy) | ||
| 38 | @@ -304,7 +304,7 @@ | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 42 | - printf (ngettext ("%d process|processes=%d;;;0", "%d processes|processes=%d;;;0", (unsigned long) procs), procs, procs, procs); | ||
| 43 | + printf (ngettext ("%d process|processes=%d;;;0", "%d processes|processes=%d;%d;%d;0", (unsigned long) procs), procs, warn, crit, procs, procs); | ||
| 44 | |||
| 45 | if (strcmp(fmt,"") != 0) { | ||
| 46 | printf (_(" with %s"), fmt); | ||
