I'm experiencing an issue, I'm getting HTTP/1.0 500 Internal Server Error:
$ /usr/local/libexec/nagios/check_http -H www.X.com -I 127.0.0.1
HTTP CRITICAL: HTTP/1.0 500 Internal Server Error - 169 bytes in 0.003 second response time |time=0.003191s;;;0.000000 size=169B;;;0
$
yet running php index.php from shell, generates html without any issues
$ php index.php | head -1
<!DOCTYPE html>
$
Please advise.