mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
add comment 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@544 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
68b985f6a0
commit
04afbf45d7
1 changed files with 14 additions and 1 deletions
|
|
@ -5,7 +5,20 @@
|
|||
#
|
||||
# A wrapper around Nagios plugins that provides a URL link in the output
|
||||
#
|
||||
|
||||
#
|
||||
# Pay close attention to quoting to ensure that the shell passes the
|
||||
# expected data to the plugin. For example, in:
|
||||
#
|
||||
# urlize http://example.com/ check_http -H example.com -r 'two words'
|
||||
#
|
||||
# the shell will remove the single quotes and urlize will see:
|
||||
#
|
||||
# urlize http://example.com/ check_http -H example.com -r two words
|
||||
#
|
||||
# You probably want:
|
||||
#
|
||||
# urlize http://example.com/ \"check_http -H example.com -r 'two words'\"
|
||||
#
|
||||
($#ARGV < 1) && die "Incorrect arguments";
|
||||
my $url = shift;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue