summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_dig.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 197d520..ae02a6e 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -142,26 +142,26 @@ main (int argc, char **argv)
142 142
143 if (elapsed_time > critical_interval) 143 if (elapsed_time > critical_interval)
144 die (STATE_CRITICAL, 144 die (STATE_CRITICAL,
145 _("DNS OK - %d seconds response time (%s)|time=%ldus\n"), 145 _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
146 elapsed_time, output, microsec); 146 elapsed_time, output, microsec);
147 147
148 else if (result == STATE_CRITICAL) 148 else if (result == STATE_CRITICAL)
149 printf (_("DNS CRITICAL - %s|time=%ldus\n"), output); 149 printf (_("DNS CRITICAL - %s|time=%ldus\n"), output, microsec);
150 150
151 else if (elapsed_time > warning_interval) 151 else if (elapsed_time > warning_interval)
152 die (STATE_WARNING, 152 die (STATE_WARNING,
153 _("DNS OK - %d seconds response time (%s)|time=%ldus\n"), 153 _("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
154 elapsed_time, output, microsec); 154 elapsed_time, output, microsec);
155 155
156 else if (result == STATE_WARNING) 156 else if (result == STATE_WARNING)
157 printf (_("DNS WARNING - %s|time=%ldus\n"), output); 157 printf (_("DNS WARNING - %s|time=%ldus\n"), output, microsec);
158 158
159 else if (result == STATE_OK) 159 else if (result == STATE_OK)
160 printf (_("DNS OK - %d seconds response time (%s)|time=%ldus\n"), 160 printf (_("DNS OK - %.3f seconds response time (%s)|time=%ldus\n"),
161 elapsed_time, output, microsec); 161 elapsed_time, output, microsec);
162 162
163 else 163 else
164 printf (_("DNS problem - %s|time=%ldus\n"), output); 164 printf (_("DNS problem - %s|time=%ldus\n"), output, microsec);
165 165
166 return result; 166 return result;
167} 167}