diff options
author | Sebastian Harl <sh@teamix.net> | 2011-04-08 10:50:52 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-11-14 20:45:44 +0100 |
commit | e683a8dce530a4eaf1a8fcc90059ea268c7df0e6 (patch) | |
tree | 4a729a3453198017734941d61bc11e8a01be37e0 /plugins | |
parent | 2bac48c02742dba92fc09d60fc211f60f10e9223 (diff) | |
download | monitoring-plugins-e683a8dce530a4eaf1a8fcc90059ea268c7df0e6.tar.gz |
check_procs: Added performance data to plugin output.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_procs.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) | |||
299 | if ( verbose >= 1 && strcmp(fails,"") ) | 299 | if ( verbose >= 1 && strcmp(fails,"") ) |
300 | printf (" [%s]", fails); | 300 | printf (" [%s]", fails); |
301 | 301 | ||
302 | if (metric == METRIC_PROCS) | ||
303 | printf (" | procs=%d;%s;%s;0;\n", procs, | ||
304 | warning_range ? warning_range : "", | ||
305 | critical_range ? critical_range : ""); | ||
306 | else | ||
307 | printf (" | procs=%d;;;0; procs_warn=%d;;;0; procs_crit=%d;;;0;", procs, warn, crit); | ||
308 | |||
302 | printf ("\n"); | 309 | printf ("\n"); |
303 | return result; | 310 | return result; |
304 | } | 311 | } |