summaryrefslogtreecommitdiffstats
path: root/plugins/urlize.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/urlize.c')
-rw-r--r--plugins/urlize.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 13ab14e..d4d00dd 100644
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "urlize"; 21const char *progname = "urlize";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "2000-2004"; 23const char *copyright = "2000-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 24const char *email = "nagiosplug-devel@lists.sourceforge.net";
25 25
26#include "common.h" 26#include "common.h"
@@ -149,27 +149,25 @@ print_help (void)
149 printf ("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"); 149 printf ("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n");
150 printf (COPYRIGHT, copyright, email); 150 printf (COPYRIGHT, copyright, email);
151 151
152 printf (_("\n\ 152 printf ("%s\n", _("This plugin wraps the text output of another command (plugin)"));
153This plugin wraps the text output of another command (plugin) in HTML\n\ 153 printf ("%s\n", _("in HTML <A> tags, thus displaying the plugin output in as a clickable link in"));
154<A> tags, thus displaying the plugin output in as a clickable link in\n\ 154 printf ("%s\n", _("the Nagios status screen. The return status is the same as the invoked plugin."));
155the Nagios status screen. The return status is the same as the invoked\n\ 155
156plugin.\n\n")); 156 printf ("\n\n");
157 157
158 print_usage (); 158 print_usage ();
159 159
160 printf (_("\n\ 160 printf (_(UT_HELP_VRSN));
161Pay close attention to quoting to ensure that the shell passes the expected\n\ 161
162data to the plugin. For example, in:\n\ 162 printf ("\n");
163\n\ 163 printf ("%s\n", _("Examples:"));
164 urlize http://example.com/ check_http -H example.com -r 'two words'\n\ 164 printf ("%s\n", _("Pay close attention to quoting to ensure that the shell passes the expected"));
165\n\ 165 printf ("%s\n\n", _("data to the plugin. For example, in:"));
166the shell will remove the single quotes and urlize will see:\n\ 166 printf (" %s\n\n", _("urlize http://example.com/ check_http -H example.com -r 'two words'"));
167\n\ 167 printf (" %s\n", _("the shell will remove the single quotes and urlize will see:"));
168 urlize http://example.com/ check_http -H example.com -r two words\n\ 168 printf (" %s\n\n", _("urlize http://example.com/ check_http -H example.com -r two words"));
169\n\ 169 printf (" %s\n\n", _("You probably want:"));
170You probably want:\n\ 170 printf (" %s\n", _("urlize http://example.com/ \"check_http -H example.com -r 'two words'\""));
171\n\
172 urlize http://example.com/ \"check_http -H example.com -r 'two words'\"\n"));
173 171
174 printf (_(UT_SUPPORT)); 172 printf (_(UT_SUPPORT));
175} 173}
@@ -179,5 +177,6 @@ You probably want:\n\
179void 177void
180print_usage (void) 178print_usage (void)
181{ 179{
182 printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname); 180 printf (_("Usage:"));
181 printf ("%s <url> <plugin> <arg1> ... <argN>\n", progname);
183} 182}