--url option dumps core in check_http ; patch included
Joe Rhett
jrhett at isite.net
Mon Mar 22 05:58:11 CET 2004
Nasty little bug in the options checking -- the long form does not work.
anubis 10% /opt/nagios/libexec/check_http -H www.test.com --string=Test --url=/test.html
/opt/nagios/libexec/check_http: unrecognized option `--url=/test.html'
Segmentation fault (core dumped)
anubis 11% /opt/nagios/libexec/check_http -H www.test.com --string=Test -u /test.html
HTTP ok: HTTP/1.1 200 OK - 0.139 second response time |time= 0.139
The patch is simple -- the long form was never mapped to the short form.
*** plugins/check_http.c_orig Sun Mar 21 20:52:20 2004
--- plugins/check_http.c Sun Mar 21 20:55:17 2004
***************
*** 304,309 ****
--- 304,310 ----
{"verbose", no_argument, 0, 'v'},
{"post", required_argument, 0, 'P'},
{"IP-address", required_argument, 0, 'I'},
+ {"url", required_argument, 0, 'u'},
{"string", required_argument, 0, 's'},
{"regex", required_argument, 0, 'r'},
{"ereg", required_argument, 0, 'r'},
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
More information about the Users
mailing list