diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_smtp.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 8440aab1..8c4f26e3 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -168,12 +168,13 @@ main (int argc, char **argv) | |||
168 | else if (check_warning_time && elapsed_time > (double) warning_time) | 168 | else if (check_warning_time && elapsed_time > (double) warning_time) |
169 | result = STATE_WARNING; | 169 | result = STATE_WARNING; |
170 | 170 | ||
171 | if (verbose) | 171 | printf (_("SMTP %s - %.3f sec. response time%s%s|%s\n"), |
172 | printf (_("SMTP %s - %.3f sec. response time, %s|time=%ldus\n"), | 172 | state_text (result), elapsed_time, |
173 | state_text (result), elapsed_time, buffer, microsec); | 173 | verbose?", ":"", verbose?buffer:"", |
174 | else | 174 | perfdata ("time", microsec, "us", |
175 | printf (_("SMTP %s - %.3f second response time|time=%ldus\n"), | 175 | check_warning_time, (long)(1000000*warning_time), |
176 | state_text (result), elapsed_time, microsec); | 176 | check_critical_time, (long)(1000000*critical_time), |
177 | TRUE, 0, FALSE, 0)); | ||
177 | 178 | ||
178 | return result; | 179 | return result; |
179 | } | 180 | } |