diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 (GMT) |
commit | f9394308c9c372bcf419a311c61ba420247ae613 (patch) | |
tree | 616e0bebcbe821703dff207f7f1b704c2deae349 /plugins/urlize.c | |
parent | cbbfed30eb01a702b2e61c0abcb64c834e73d654 (diff) | |
download | monitoring-plugins-f9394308c9c372bcf419a311c61ba420247ae613.tar.gz |
updating help and usage and license
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1434 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/urlize.c')
-rw-r--r-- | plugins/urlize.c | 39 |
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 | ||
21 | const char *progname = "urlize"; | 21 | const char *progname = "urlize"; |
22 | const char *revision = "$Revision$"; | 22 | const char *revision = "$Revision$"; |
23 | const char *copyright = "2000-2004"; | 23 | const char *copyright = "2000-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 24 | const 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)")); |
153 | This 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.")); |
155 | the Nagios status screen. The return status is the same as the invoked\n\ | 155 | |
156 | plugin.\n\n")); | 156 | printf ("\n\n"); |
157 | 157 | ||
158 | print_usage (); | 158 | print_usage (); |
159 | 159 | ||
160 | printf (_("\n\ | 160 | printf (_(UT_HELP_VRSN)); |
161 | Pay close attention to quoting to ensure that the shell passes the expected\n\ | 161 | |
162 | data 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:")); |
166 | the 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:")); |
170 | You 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\ | |||
179 | void | 177 | void |
180 | print_usage (void) | 178 | print_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 | } |