summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 855fac7)
raw | patch | inline | side by side (parent: 855fac7)
author | Matthew Kent <mattkent@users.sourceforge.net> | |
Thu, 18 Nov 2004 05:36:29 +0000 (05:36 +0000) | ||
committer | Matthew Kent <mattkent@users.sourceforge.net> | |
Thu, 18 Nov 2004 05:36:29 +0000 (05:36 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@901 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_smtp.c | patch | blob | history |
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 314f59b10154a39e83709a6bf7f6c184af8fcaf5..19e9731b0c534a5de8d2dafcd4d4a91f75f4699d 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
microsec = deltime (tv);
elapsed_time = (double)microsec / 1.0e6;
- if (check_critical_time && elapsed_time > (double) critical_time)
- result = STATE_CRITICAL;
- else if (check_warning_time && elapsed_time > (double) warning_time)
- result = STATE_WARNING;
+ if (result == STATE_OK)
+ if (check_critical_time && elapsed_time > (double) critical_time)
+ result = STATE_CRITICAL;
+ else if (check_warning_time && elapsed_time > (double) warning_time)
+ result = STATE_WARNING;
printf (_("SMTP %s - %.3f sec. response time%s%s|%s\n"),
state_text (result), elapsed_time,