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=212c1d00462eb10b8c68b0a3721d036b4c883221;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; }