Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26690

Fortigate by HTTP - API not working for v7.4.7

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 7.4.0
    • Templates (T)
    • None

      Applying Fortigate by HTTP template to the host results in API errors, token is correct though, i can access the API via url from the zabbix server

      1181065:20250709:152611.605 [ FortiGate ] [ https://...:443/api/v2/monitor/license/status?access_token=... ] Received response with status code 401: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>401 Unauthorized</title>
      </head><body>
      <h1>Unauthorized</h1>
      <p>This server could not verify that you
      are authorized to access the document
      requested.  Either you supplied the wrong
      credentials (e.g., bad password), or your
      browser doesn't understand how to supply....

       

      Here with curl:

      root@zabbix:/var/log/zabbix# curl --insecure -H "Accept: application/json" -H "Authorization: Bearer ..." https://.../api/v2/monitor/web-ui/state
      {
        "http_method":"GET",
        "results":{
          "model_name":"FortiGate",
          "model_number":"100F",
          "model":"FG100F",
          "model_subtype":"",
          "model_level":"medium",
          "eos":false,
          "limited_ram":false,
          "admin_using_default_password":false,
          "admin":{
            "name":"zabbix",

       

       

            zit Zabbix Integration Team
            fallendesblatt fallendesblatt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: