aboutsummaryrefslogtreecommitdiff
path: root/plugins/urlize.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-06-10 05:02:44 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-06-10 05:02:44 +0000
commit68b985f6a0d34e2e81270e68447d0f57818c563a (patch)
tree2181f2792c3bbd6ad0f25af2c2e8a938a6071bcf /plugins/urlize.c
parent7da0b3522a2cb3515e84733b3d3a357c2728b069 (diff)
downloadmonitoring-plugins-68b985f6a0d34e2e81270e68447d0f57818c563a.tar.gz
add note about shell quote removal to address https://sourceforge.net/tracker/index.php?func=detail&aid=661916&group_id=29880&atid=397597
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@543 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/urlize.c')
-rw-r--r--plugins/urlize.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 8d6fc3ad..b9217072 100644
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
@@ -102,7 +102,7 @@ main (int argc, char **argv)
}
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);
}
@@ -131,12 +131,25 @@ void
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);
}