--url option dumps core in check_http ; patch included

Voon, Ton Ton.Voon at egg.com
Mon Mar 22 08:35:58 CET 2004


Joe,

Thanks for the patch. Applied to CVS HEAD and r1.3.0 branch.

Ton

-----Original Message-----
From: Joe Rhett [mailto:jrhett at isite.net] 
Sent: Monday, March 22, 2004 4:58 AM
To: nagios-devel at lists.sourceforge.net
Cc: nagios-users at lists.sourceforge.net
Subject: [Nagios-devel] --url option dumps core in check_http ; patch
included


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
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
is authorised and regulated by the Financial Services Authority. Egg
Investments Ltd. is entered in the FSA register under number 190518. 

Registered in England and Wales. Registered offices: 1 Waterhouse
Square, 138-142 Holborn, London EC1N 2NA.

If you are not the intended recipient of this e-mail and have received
it in error, please notify the sender by replying with 'received in
error' as the subject and then delete it from your mailbox.



-------------------------------------------------------
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