diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-28 03:53:52 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-28 03:53:52 (GMT) |
commit | 46e26edd7f68a3870b56dc1311f7d9b6eee7ee1f (patch) | |
tree | fd4928a1e43b6f138f2581d7e390f1f76db6c625 /plugins/check_dns.c | |
parent | 0644b3988487e4eb70352dc65d4f840de57d9330 (diff) | |
download | monitoring-plugins-46e26edd7f68a3870b56dc1311f7d9b6eee7ee1f.tar.gz |
add perf data
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@703 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 328fc5f..309c65b 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -212,8 +212,9 @@ main (int argc, char **argv) | |||
212 | else | 212 | else |
213 | multi_address = TRUE; | 213 | multi_address = TRUE; |
214 | 214 | ||
215 | printf (_("DNS ok - %.3f seconds response time, address%s %s|time=%ldus\n"), | 215 | printf (_("DNS ok - %.3f seconds response time, address%s %s|%s\n"), |
216 | elapsed_time, (multi_address==TRUE ? "es are" : " is"), address, microsec); | 216 | elapsed_time, (multi_address==TRUE ? "es are" : " is"), address, |
217 | perfdata ("time", microsec, "us", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); | ||
217 | } | 218 | } |
218 | else if (result == STATE_WARNING) | 219 | else if (result == STATE_WARNING) |
219 | printf (_("DNS WARNING - %s\n"), | 220 | printf (_("DNS WARNING - %s\n"), |