summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 066b63b)
raw | patch | inline | side by side (parent: 066b63b)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 23 Aug 2003 13:58:14 +0000 (13:58 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 23 Aug 2003 13:58:14 +0000 (13:58 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@693 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_dig.c | patch | blob | history |
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 197d5205a21aa72c1610d77aa02fe4b0bfa3e089..ae02a6edd2a870120f61ec530cf661a38a14c4a9 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
if (elapsed_time > critical_interval)
die (STATE_CRITICAL,
- _("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
+ _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
elapsed_time, output, microsec);
else if (result == STATE_CRITICAL)
- printf (_("DNS CRITICAL - %s|time=%ldus\n"), output);
+ printf (_("DNS CRITICAL - %s|time=%ldus\n"), output, microsec);
else if (elapsed_time > warning_interval)
die (STATE_WARNING,
- _("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
+ _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
elapsed_time, output, microsec);
else if (result == STATE_WARNING)
- printf (_("DNS WARNING - %s|time=%ldus\n"), output);
+ printf (_("DNS WARNING - %s|time=%ldus\n"), output, microsec);
else if (result == STATE_OK)
- printf (_("DNS OK - %d seconds response time (%s)|time=%ldus\n"),
+ printf (_("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
elapsed_time, output, microsec);
else
- printf (_("DNS problem - %s|time=%ldus\n"), output);
+ printf (_("DNS problem - %s|time=%ldus\n"), output, microsec);
return result;
}