summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-09-08 10:17:16 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-09-08 10:17:16 +0200
commit8164ce46fb1e4c9deceb5fe351e6c91fb09ca2cf (patch)
treeb645b220785d3aff878d705abc8da110f9bffdff
parentdd7c9b17d8a787f5679cae60b69d213e9866efb7 (diff)
parent9661ee74885834f7b69ab0874c4e65bed0b871c9 (diff)
downloadmonitoring-plugins-8164ce4.tar.gz
Merge branch 'master' into feature_check_curl
-rw-r--r--plugins/negate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/negate.c b/plugins/negate.c
index b320e356..50f62d33 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -86,11 +86,9 @@ main (int argc, char **argv)
86 result = cmd_run_array (command_line, &chld_out, &chld_err, 0); 86 result = cmd_run_array (command_line, &chld_out, &chld_err, 0);
87 } 87 }
88 if (chld_err.lines > 0) { 88 if (chld_err.lines > 0) {
89 printf ("Error output from command:\n");
90 for (i = 0; i < chld_err.lines; i++) { 89 for (i = 0; i < chld_err.lines; i++) {
91 printf ("%s\n", chld_err.line[i]); 90 fprintf (stderr, "%s\n", chld_err.line[i]);
92 } 91 }
93 exit (STATE_WARNING);
94 } 92 }
95 93
96 /* Return UNKNOWN or worse if no output is returned */ 94 /* Return UNKNOWN or worse if no output is returned */