Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-403 exposing curl options for web monitoring
  3. ZBXNEXT-373

'curl -NTLM' option in "Web Monitor" to use with Microsoft IIS based NTLM web sites(like CRM or Sharepoint)

XMLWordPrintable

    • Icon: Change Request (Sub-task) Change Request (Sub-task)
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.8.4
    • None
    • None
    • None
    • zabbix 1.8 on CentOS 5.4 linux.

      Hi Guys

      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

      {host}

      .
      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.

      For Example:

      If I run this from shell:

      [root@zabbix ]# curl --anyauth -u "username:password" http://server_name/folder/loader.aspx
      HTTP Error 401.2 - Unauthorized: Access is denied

      But if I run this:
      [root@zabbix ]# 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

      <html>
      <head>
      <link rel="SHORTCUT ICON" href="/favicon.ico" />
      <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
      <script type="text/javascript">
      ....
      ....
      ....
      </frameset>
      </frameset>
      </html>

      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).

            Unassigned Unassigned
            bflance Benjamin Shtark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: