summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7da0b35)
raw | patch | inline | side by side (parent: 7da0b35)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 10 Jun 2003 05:02:44 +0000 (05:02 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 10 Jun 2003 05:02:44 +0000 (05:02 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@543 f882894a-f735-0410-b71e-b25c423dba1c
plugins/urlize.c | patch | blob | history |
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 8d6fc3adf1fe9806ffde14f01ecf748017770707..b9217072e5c3b0b8af5567fc747fef0a4c8527d6 100644 (file)
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
}
if (!found) {
- printf ("%s problem - No data recieved from host\nCMD: %s\n", argv[0],
+ printf ("%s problem - No data recieved from host\nCMD: %s</A>\n", argv[0],
cmd);
exit (STATE_UNKNOWN);
}
print_help (const char *cmd)
{
print_revision (progname, "$Revision$");
- printf
- ("Copyright (c) 2000 Karl DeBisschop (kdebiss@alum.mit.edu)\n\n"
- "\nThis plugin wraps the text output of another command (plugin) in HTML\n"
- "<A> tags, thus displaying the plugin output in as a clickable link in\n"
- "the Nagios status screen. The return status is the same as the invoked\n"
- "plugin.\n\n");
+ printf ("\
+Copyright (c) 2000 Karl DeBisschop (kdebiss@alum.mit.edu)\n\n\
+\nThis plugin wraps the text output of another command (plugin) in HTML\n\
+<A> tags, thus displaying the plugin output in as a clickable link in\n\
+the Nagios status screen. The return status is the same as the invoked\n\
+plugin.\n\n");
print_usage (cmd);
+ printf ("\n\
+Pay close attention to quoting to ensure that the shell passes the expected\n\
+data to the plugin. For example, in:\n\
+\n\
+ urlize http://example.com/ check_http -H example.com -r 'two words'\n\
+\n\
+the shell will remove the single quotes and urlize will see:\n\
+\n\
+ urlize http://example.com/ check_http -H example.com -r two words\n\
+\n\
+You probably want:\n\
+\n\
+ urlize http://example.com/ \"check_http -H example.com -r 'two words'\"\n");
exit (STATE_OK);
}