Change Request (Sub-task)
zabbix 1.8 on CentOS 5.4 linux.
I was wondering, if you could add \"curl -ntlm\" option into Web Monitoring feature in future releases.
unfortunately many sites (especialy ones running on IIS) are using NTLM as authentication protocol, thus it is impossible to monitor them using \"none\" or \"basic\" auth method provided in zabbix\'s Web monitoring.
I tried to find a solution, but it seems like there is only 2 options right now available for me:
1. patch zabbix (including DB schema) , which seems complicated and i dont know how to do it.
2. create a script do do the basic checks using curl -ntlm
which seems easier but it lacks all the beauty Web Monitor provides.
The problem happens when I try to add NTLM based (Microsoft IIS) web sites to Web Monitor.
I get 401 error in zabbix interface.
If I run this from shell:
[[email protected] ]# curl --anyauth -u "username:password" http://server_name/folder/loader.aspx
HTTP Error 401.2 - Unauthorized: Access is denied
But if I run this:
[[email protected] ]# curl --NTLM -u "username:password" http://server_name/folder/loader.aspx
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9138 100 9138 0 0 122k 0 -
: :- - : :- - : :- 122k
<link rel="SHORTCUT ICON" href="/favicon.ico" />
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
So, as you can see, in order to "view" contents of NTLM based web sites I need somehow tell zabbix to
Include NTLM flag in libcurl when connecting using Web Monitor(which he doesn't do by default).