summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a44969)
raw | patch | inline | side by side (parent: 8a44969)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 19 Nov 2003 06:00:53 +0000 (06:00 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 19 Nov 2003 06:00:53 +0000 (06:00 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@772 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 8440aab14ddfbf946f1924fc865e47bf760abf1d..8c4f26e3276d77c6e491ff9d294a100747494d13 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
else if (check_warning_time && elapsed_time > (double) warning_time)
result = STATE_WARNING;
- if (verbose)
- printf (_("SMTP %s - %.3f sec. response time, %s|time=%ldus\n"),
- state_text (result), elapsed_time, buffer, microsec);
- else
- printf (_("SMTP %s - %.3f second response time|time=%ldus\n"),
- state_text (result), elapsed_time, microsec);
+ printf (_("SMTP %s - %.3f sec. response time%s%s|%s\n"),
+ state_text (result), elapsed_time,
+ verbose?", ":"", verbose?buffer:"",
+ perfdata ("time", microsec, "us",
+ check_warning_time, (long)(1000000*warning_time),
+ check_critical_time, (long)(1000000*critical_time),
+ TRUE, 0, FALSE, 0));
return result;
}