After some googling I found an older issue, but looks like the new code fixes it. Took the snippet of the code to make sure we still don't need to change it.
/usr/local/nagiosxi/html/includes/utilsx.inc.php
Code: Select all
//Updated to 2 on 4/10/2013, support for 1 is removed in curl 7.28.1 and PHP 5.4 - MG - Updated 6/4/2013 to take into account older systems -SW
$curl_version_info=curl_version();
if ($curl_version_info['version_number'] >= 465921 || version_compare(phpversion(), '5.4', '>'))
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);
else
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,1);
//proxy options - added 10/12/2011 -MG
if($use_proxy)
{
//Added ability to turn off HTTPPROXYTUNNEL from proxy component -SW
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, get_option('proxy_tunnel',1));
curl_setopt($ch, CURLOPT_PROXY, get_option('proxy_address'));
curl_setopt($ch, CURLOPT_PROXYPORT, get_option('proxy_port'));
curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');
//use auth credentials if specified
if(have_value(get_option('proxy_auth')))
curl_setopt($ch, CURLOPT_PROXYUSERPWD, get_option('proxy_auth'));
}