mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-20 21:57:10 -04:00
Output plugin's stderr to stderr
Output plugin's stderr to stderr and do not exit with WARNING in that case
This commit is contained in:
parent
b3d39e605e
commit
6e67b638f8
1 changed files with 1 additions and 3 deletions
|
|
@ -86,11 +86,9 @@ main (int argc, char **argv)
|
|||
result = cmd_run_array (command_line, &chld_out, &chld_err, 0);
|
||||
}
|
||||
if (chld_err.lines > 0) {
|
||||
printf ("Error output from command:\n");
|
||||
for (i = 0; i < chld_err.lines; i++) {
|
||||
printf ("%s\n", chld_err.line[i]);
|
||||
fprintf (stderr, "%s\n", chld_err.line[i]);
|
||||
}
|
||||
exit (STATE_WARNING);
|
||||
}
|
||||
|
||||
/* Return UNKNOWN or worse if no output is returned */
|
||||
|
|
|
|||
Loading…
Reference in a new issue