mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-10 11:26:39 -04:00
check_procs: Added performance data to plugin output.
This commit is contained in:
parent
2bac48c027
commit
e683a8dce5
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue