Page 1 of 1

check_http on cloudflare results in 500 Internal error

Posted: Thu Sep 23, 2021 5:22 pm
by gossamer
Hi, I have a fedora34 system with nagios-4.4.6-4.fc34.x86_64 and recently noticed the check_http plugin is returning a 500 internal error, then a 301 redirect:

Sep 23 17:09:32 arcade nagios[744]: SERVICE ALERT: darwin;HTTPS-darwin-linuxsecurity;CRITICAL;SOFT;3;HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - 676 bytes in 0.142 second response time
Sep 23 17:10:26 arcade nagios[744]: SERVICE ALERT: darwin;HTTPS-www.linuxsecurity.com;OK;SOFT;2;HTTP OK: HTTP/1.1 301 Moved Permanently - 879 bytes in 3.120 second response time

This is the service entry for this check:

define service {
use standard-service-24x7
host_name darwin
service_description HTTPS-www.linuxsecurity.com
check_command check_https_url!linuxsecurity.com!/index.php
}

This config has been in place for a really long time, but has only recently started to produce this problem. I also don't believe any changes have been made to cloudflare which may have caused this. I've also just added a rule that allows the originating IP and the problem continues.

What more can I do to troubleshoot this?

Re: check_http on cloudflare results in 500 Internal error

Posted: Fri Sep 24, 2021 4:48 pm
by gossamer
Hi, no one has any ideas on this?