[Nagiosplug-checkins] CVS: nagiosplug/plugins urlize.c,1.5,1.6
Karl DeBisschop
kdebisschop at users.sourceforge.net
Mon Jun 9 22:03:08 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv18726
Modified Files:
urlize.c
Log Message:
add note about shell quote removal to address https://sourceforge.net/tracker/index.php?func=detail&aid=661916&group_id=29880&atid=397597
Index: urlize.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/urlize.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** urlize.c 13 Jan 2003 12:15:16 -0000 1.5
--- urlize.c 10 Jun 2003 05:02:44 -0000 1.6
***************
*** 103,107 ****
if (!found) {
! printf ("%s problem - No data recieved from host\nCMD: %s\n", argv[0],
cmd);
exit (STATE_UNKNOWN);
--- 103,107 ----
if (!found) {
! printf ("%s problem - No data recieved from host\nCMD: %s</A>\n", argv[0],
cmd);
exit (STATE_UNKNOWN);
***************
*** 132,142 ****
{
print_revision (progname, "$Revision$");
! printf
! ("Copyright (c) 2000 Karl DeBisschop (kdebiss at 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);
exit (STATE_OK);
}
--- 132,155 ----
{
print_revision (progname, "$Revision$");
! printf ("\
! Copyright (c) 2000 Karl DeBisschop (kdebiss at 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);
}
More information about the Commits
mailing list