From 46e26edd7f68a3870b56dc1311f7d9b6eee7ee1f Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Thu, 28 Aug 2003 03:53:52 +0000 Subject: add perf data git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@703 f882894a-f735-0410-b71e-b25c423dba1c 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) else multi_address = TRUE; - printf (_("DNS ok - %.3f seconds response time, address%s %s|time=%ldus\n"), - elapsed_time, (multi_address==TRUE ? "es are" : " is"), address, microsec); + printf (_("DNS ok - %.3f seconds response time, address%s %s|%s\n"), + elapsed_time, (multi_address==TRUE ? "es are" : " is"), address, + perfdata ("time", microsec, "us", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); } else if (result == STATE_WARNING) printf (_("DNS WARNING - %s\n"), -- cgit v0.10-9-g596f