From: Sebastian Harl Date: Fri, 8 Apr 2011 08:50:52 +0000 (+0200) Subject: check_procs: Added performance data to plugin output. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=refs%2Fheads%2Fsh%2Fcheck_procs;p=nagiosplug.git check_procs: Added performance data to plugin output. --- diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 41228c5..1a748d7 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -299,6 +299,13 @@ main (int argc, char **argv) if ( verbose >= 1 && strcmp(fails,"") ) printf (" [%s]", fails); + if (metric == METRIC_PROCS) + printf (" | procs=%d;%s;%s;0;\n", procs, + warning_range ? warning_range : "", + critical_range ? critical_range : ""); + else + printf (" | procs=%d;;;0; procs_warn=%d;;;0; procs_crit=%d;;;0;", procs, warn, crit); + printf ("\n"); return result; }