diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-13 21:10:59 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-13 21:10:59 (GMT) |
commit | 18a68256da0a95dbb511ec28c86a4613d325ebb5 (patch) | |
tree | 34639a3bb3ee14b2c65c6e411d940a0f3ac89ecd /plugins | |
parent | 99be255ed1402825b1cca3dd6ba8d017a03ae127 (diff) | |
download | monitoring-plugins-18a68256da0a95dbb511ec28c86a4613d325ebb5.tar.gz |
Perf data without leading spaces and fix ANSI C complaint about \n
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@420 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_smtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 04df7e6..dd9f19b 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -32,7 +32,7 @@ connects, but incorrect reponse messages from the host result in\n\ | |||
32 | STATE_WARNING return values.\n"; | 32 | STATE_WARNING return values.\n"; |
33 | 33 | ||
34 | const char *option_summary = "\ | 34 | const char *option_summary = "\ |
35 | -H host [-p port] [-e expect] [-C command] [-f from addr] | 35 | -H host [-p port] [-e expect] [-C command] [-f from addr]\n\ |
36 | [-w warn] [-c crit] [-t timeout] [-n] [-v]"; | 36 | [-w warn] [-c crit] [-t timeout] [-n] [-v]"; |
37 | 37 | ||
38 | const char *options = "\ | 38 | const char *options = "\ |
@@ -200,10 +200,10 @@ main (int argc, char **argv) | |||
200 | result = STATE_WARNING; | 200 | result = STATE_WARNING; |
201 | 201 | ||
202 | if (verbose) | 202 | if (verbose) |
203 | printf ("SMTP %s - %7.3f sec. response time, %s|time=%7.3f\n", | 203 | printf ("SMTP %s - %.3f sec. response time, %s|time=%.3f\n", |
204 | state_text (result), elapsed_time, buffer, elapsed_time); | 204 | state_text (result), elapsed_time, buffer, elapsed_time); |
205 | else | 205 | else |
206 | printf ("SMTP %s - %7.3f second response time|time=%7.3f\n", | 206 | printf ("SMTP %s - %.3f second response time|time=%.3f\n", |
207 | state_text (result), elapsed_time, elapsed_time); | 207 | state_text (result), elapsed_time, elapsed_time); |
208 | 208 | ||
209 | return result; | 209 | return result; |