Search found 7 matches

by leres
Sat Feb 06, 2021 2:04 pm
Forum: Open Source Nagios Projects
Topic: read_cgi_config_file() fails after upgrading to PHP 8.0
Replies: 0
Views: 2944

read_cgi_config_file() fails after upgrading to PHP 8.0

I'm using nagios 4.4.6 on FreeBSD 12.2-RELEASE and just upgraded from PHP 7.4 to 8.0. Trying to load the main nagios index.php results in: Warning: Trying to access array offset on value of type bool in /usr/local/www/nagios/includes/utils.inc.php on line 217 read_cgi_config_file() is looping on !fe...
by leres
Fri Feb 28, 2020 9:14 pm
Forum: Open Source Nagios Projects
Topic: 2.3.2 breaks -s, -r, and -R for check_http
Replies: 5
Views: 2593

Re: 2.3.2 breaks -s, -r, and -R for check_http

Ooosp! While your patch does fix check_http when the http server provides a content-length header is does not help if the header is missing. By my read of the spec, content-length is not required: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Applications SHOULD use this field to indicate ...
by leres
Fri Feb 28, 2020 8:23 pm
Forum: Open Source Nagios Projects
Topic: 2.3.2 breaks -s, -r, and -R for check_http
Replies: 5
Views: 2593

Re: 2.3.2 breaks -s, -r, and -R for check_http

Thanks for the patch! I can confirm it solves this. I created this FreeBSD PR.
by leres
Wed Feb 26, 2020 1:53 pm
Forum: Open Source Nagios Projects
Topic: 2.3.2 breaks -s, -r, and -R for check_http
Replies: 5
Views: 2593

Re: 2.3.2 breaks -s, -r, and -R for check_http

Actually I did debug a bit more: adding -v to my http://www.freebsd.org examples shows that 2.3.1 gets 583 lines of content/body while 2.3.2 only gets 177 lines.
by leres
Wed Feb 26, 2020 1:50 pm
Forum: Open Source Nagios Projects
Topic: 2.3.2 breaks -s, -r, and -R for check_http
Replies: 5
Views: 2593

2.3.2 breaks -s, -r, and -R for check_http

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: # 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 ...
by leres
Thu Feb 23, 2017 12:20 pm
Forum: Open Source Nagios Projects
Topic: check_http fails when Transfer-Encoding is the last header
Replies: 3
Views: 2821

Re: check_http fails when Transfer-Encoding is the last head

Thanks! I would have posted there directly but when I went looking for where to report bugs I started here:
https://nagios-plugins.org/support/
which references the support forums for reporting bugs and does not mention the github repo as far as I can see.
by leres
Wed Feb 22, 2017 10:30 pm
Forum: Open Source Nagios Projects
Topic: check_http fails when Transfer-Encoding is the last header
Replies: 3
Views: 2821

check_http fails when Transfer-Encoding is the last header

After upgrading nagios-plugins from 2.1.4 to 2.2.0 check_http started failing for a couple of sites. This appears to be because there is no trailing \r\n after nTransfer-Encoding header which happens in the failing case to appear last: (gdb) set print elements 1024 (gdb) p header $6 = 0x42b52c "...