Description of problem: check_http reports warning where it should report ok with -e Version-Release number of selected component (if applicable): pending 2.2.0, e.g. nagios-plugins-http-2.2.0-1.el7.x86_64.rpm # check_http -V -H www.google.com -u /test -e 404 check_http v2.1.4 (nagios-plugins 2.1.4) # ./2.1.4/check_http -H www.google.com -u /test -e 404 HTTP OK: Status line output matched "404" - 1709 bytes in 0,030 second response time |time=0,029535s;;;0,000000 size=1709B;;;0 # /usr/lib64/nagios/plugins/check_http -V check_http v2.2.0 (nagios-plugins 2.2.0) # /usr/lib64/nagios/plugins/check_http -H www.google.com -u /test -e 404 HTTP WARNING: Status line output matched "404" - HTTP/1.1 404 Not Found - 1709 bytes in 0,029 second response time |time=0,029460s;;;0,000000 size=1709B;;;0 Additional info: https://github.com/nagios-plugins/nagios-plugins/issues/236
nagios-plugins-2.2.0-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-cbb077cc9b
This version crashes: # /usr/lib64/nagios/plugins/check_http -H www.google.com -v GET / HTTP/1.1 User-Agent: check_http/v2.2.0 (nagios-plugins 2.2.0) Connection: close Host: www.google.com Accept: */* http://www.google.com:80/ is 490 characters STATUS: HTTP/1.1 302 Found **** HEADER **** Cache-Control: private Content-Type: text/html; charset=UTF-8 Location: http://www.google.de/?gfe_rd=cr&ei=2fyxWM68A-iA8QeOnKnwCA Content-Length: 258 Date: Sat, 25 Feb 2017 21:53:29 GMT Connection: close **** CONTENT **** <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE></HEAD><BODY> <H1>302 Moved</H1> The document has moved <A HREF="http://www.google.de/?gfe_rd=cr&ei=2fyxWM68A-iA8QeOnKnwCA">here</A>. </BODY></HTML> Speicherzugriffsfehler <- LC_ALL unfortunatly don't translate ltrace last lines: [pid 28357] strtol(0x7f4281915429, 0, 10, 3) = 302 [pid 28357] dcgettext(0, 0x7f4280e7d134, 5, 0) = 0x7f4280e7d134 [pid 28357] __vasprintf_chk(0x7ffff7a17bd8, 1, 0x7f4280e7d134, 0x7ffff7a17a30 <no return ...> [pid 28357] --- SIGSEGV (Segmentation fault) --- [pid 28357] +++ killed by SIGSEGV +++
That is what I get for not running make test. I am running that now and I apologize.. I thought a pointer was initialized earlier but it was not so we were writing to random memory if -e wasn't set. Fixed.. and pushing updates to trees https://koji.fedoraproject.org/koji/taskinfo?taskID=18061938
nagios-plugins-2.2.0-4.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-579895db6a
2.2.0-4.el7 looks ok
nagios-plugins-2.2.0-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-579895db6a
nagios-plugins-2.2.0-6.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-212f3ef76e
nagios-plugins-2.2.0-6.el7 lost the fixes of 2.2.0-4 :-( # ./2.2.0-4/check_http -H www.google.com -u /test -e 404 HTTP OK: Status line output matched "404" - 1709 bytes in 0,030 second response time |time=0,029699s;;;0,000000 size=1709B;;;0 # ./2.2.0-6/check_http -H www.google.com -u /test -e 404 HTTP WARNING: Status line output matched "404" - HTTP/1.1 404 Not Found - 1709 bytes in 0,030 second response time |time=0,029518s;;;0,000000 size=1709B;;;0
nagios-plugins-2.2.0-6.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-212f3ef76e
nagios-plugins-2.2.0-7.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-756fbbf351
nagios-plugins-2.2.0-7.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-756fbbf351
The fix should be back... the versions I tested on my systems worked as expected on looking for returns and such.
nagios-plugins-2.2.1-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-e452ab1676
nagios-plugins-2.2.1-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-e452ab1676
nagios-plugins-2.2.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.