2.3.2 breaks -s, -r, and -R for check_http
Posted: Wed Feb 26, 2020 1:50 pm
After upgrading to nagios-plugins 2.3.2 I'm unable to get any of the -s, -r, or -R flags to work with check_http:
Reverting the recent change to document_headers_done() solves this, I did not attempt to debug further.
Code: Select all
# 2.3.1 works
fun 235 % pkg info nagios-plugins | fgrep Version
Version : 2.3.1,1
fun 236 % /usr/local/libexec/nagios/check_http -S -H www.freebsd.org -s operating
HTTP OK: HTTP/1.1 200 OK - 26414 bytes in 0.393 second response time |time=0.393414s;;;0.000000 size=26414B;;;0Code: Select all
# 2.3.2 fails
dot 241 % pkg info nagios-plugins | fgrep Version
Version : 2.3.2,1
dot 242 % /usr/local/libexec/nagios/check_http -S -H www.freebsd.org -s operating
HTTP CRITICAL: HTTP/1.1 200 OK - string 'operating' not found on 'https://www.freebsd.org:443/' - 8195 bytes in 0.351 second response time |time=0.350931s;;;0.000000 size=8195B;;;0