diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-05 00:54:09 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-05 00:54:09 (GMT) |
commit | 2ab4d8fc278413b01ff9c4e4496f892398f80a4c (patch) | |
tree | 6d402f5bf1b4673d00f97bbb84b1ea6b4badd060 /plugins/check_smtp.c | |
parent | e9e1fe6ef5720adf355b605ffdbe94cd608cc46c (diff) | |
download | monitoring-plugins-2ab4d8fc278413b01ff9c4e4496f892398f80a4c.tar.gz |
fix patch 998291
fix patch 1078934 expect check_ssh fix and check_nt perfdata should stay
on one word like in nagios
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1004 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r-- | plugins/check_smtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index ab1b950..b6c60c2 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -218,11 +218,12 @@ main (int argc, char **argv) | |||
218 | microsec = deltime (tv); | 218 | microsec = deltime (tv); |
219 | elapsed_time = (double)microsec / 1.0e6; | 219 | elapsed_time = (double)microsec / 1.0e6; |
220 | 220 | ||
221 | if (result == STATE_OK) | 221 | if (result == STATE_OK) { |
222 | if (check_critical_time && elapsed_time > (double) critical_time) | 222 | if (check_critical_time && elapsed_time > (double) critical_time) |
223 | result = STATE_CRITICAL; | 223 | result = STATE_CRITICAL; |
224 | else if (check_warning_time && elapsed_time > (double) warning_time) | 224 | else if (check_warning_time && elapsed_time > (double) warning_time) |
225 | result = STATE_WARNING; | 225 | result = STATE_WARNING; |
226 | } | ||
226 | 227 | ||
227 | printf (_("SMTP %s - %.3f sec. response time%s%s|%s\n"), | 228 | printf (_("SMTP %s - %.3f sec. response time%s%s|%s\n"), |
228 | state_text (result), elapsed_time, | 229 | state_text (result), elapsed_time, |