From e683a8dce530a4eaf1a8fcc90059ea268c7df0e6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 8 Apr 2011 10:50:52 +0200 Subject: check_procs: Added performance data to plugin output. --- plugins/check_procs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 23fdc27a..acb256ba 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; } -- cgit v1.2.3-74-g34f1