Skip to main content

Hello,

 

I would like to configure the apps::protocols::http::plugin plugin to check websites through a proxy.
however after various tests I was unable to get through the proxy.
For with the following command I go through the proxy:
curl --proxy-ntlm -v -x 'proxy.here.io:8080' -U 'domain\user01:azerty$$' http://google.com/

My last test:

/usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin  
 --mode=response 
 --hostname=www.google.com
 --proto='http'  
 --port='80'  
 --urlpath='/'  
 --warning=''   
 --critical=''  
 --proxyurl='http://proxy.here.io:8080' 
 --ntlmv2 
 --credentials
 --username='domain\user01'
 --password='azerty$$' 
 --http-backend=curl

Centreon 23.04.06 uptodate.

best regards

Hi Govy,


Did you find a solution to make a HTTP check throught a proxy that need ntlm authentication ?

I have the same problem and I don’t find any way to authenticate to an Olfeo Proxy.

In the plugins help, I just see the proxyurl parameter but nothing about proxy authentication. "--credentials" and "--username" seem to be related to the website authentication, not the proxy authentication.

Best regards

 


Hi,

Yes, this options solved the problem :

/usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin   \  
--mode=response \
--hostname=www.google.com \
--proto='http'   \
--port='80'   \
--urlpath='/'  \
--warning=''   \
--critical=''  \
--proxyurl='http://myproxy.fr:8585' \
--http-backend=curl \
--curl-opt="CURLOPT_PROXYAUTH => CURLAUTH_NTLM" --curl-opt='CURLOPT_PROXYUSERPWD => domain\login:password'
 
or  --curl-opt='CURLOPT_PROXYUSERPWD => login@domain:password'

 

best regards


Thank you so much for your answer.

Indeed I already finded also this kind of possibilities with the CURL backend, but do you know a similary configuration with LWP backend ?


sorry, no idea.


Reply