2 Replies Latest reply on Jun 6, 2011 5:34 AM by kloby

    custom HTML help with Fortigate FW

    kloby

      Hi,

      Im trying to get bandwidth dashboard from Fortigate FW on Solarwinds NPM with custom HTML.

      I tried with iframe and direct link :

      1. "<iframe src="https://192.168.140.254/system/widget/per_ip_usage?id=21"></iframe>"

      This is script from dashboard (view source):

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <link href="/20976/style.css" rel="stylesheet" type="text/css">
      <script type="text/javascript" src="/20976/fweb_core_all.js"></script>
      <script language="javascript" type="text/javascript" src="/20976/en/error.js"></script>
      <script type="text/javascript" src="/20976/dashboard_mod.js"></script>
      </head><body onload="update_widget_frame(21, '/system/widget/per_ip_usage', 30);" class="main" style="border: 0; margin: 0;">
      <map name="db_21_map" id="db_21_map"></map>
      <table cellspacing="0" cellpadding="0" class="widget-table container">
      <tr><td class="dashboard-title">Per-IP Bandwidth Usage&nbsp;(<span id="db_21_time"></span>)</td></tr>
      
      <tr style="height: 100%; vertical-align: top;"><td align="center">
      <table id="db_21_table" class="list" cellspacing="1" cellpadding="1">
      <tr class="heading">
      <td>#</td>
      <td>IP Address</td>
      <td>VDOM</td>
      <td>Current Bandwidth</td>
      </tr>
      <tr class="chart_loading"><td colspan="5"><img src="/images/loading.gif">
      </td></tr>
      </table>
      </td></tr>
      </table>
      
      <div id="overDiv" style="position:absolute; visibility:hidden;"></div>
      </body>
      <script type="text/javascript">
      var per_ip_usage_texts = {
        ip:           "IP Address",
        bw:           "Current Bandwidth",
        vdom:         "VDOM",
        bps:          "Bytes Per Second"
      }
      </script>
      </html>
      
      I manage to get dashboard but there is no data inside table, so anybody can help me with this code, what is missing and is it possible at all.
      I tried with full path on SRC="xxx.xxx.xx..." and nothing
      thnx
      NPM 10.0.0 SP1
        • Re: custom HTML help with Fortigate FW
          bshopp

          Most likely this is cause this is an HTTPS connection.  I am not 100% sure, but that is my first theory.  Could you add the page as an external link?

            • Re: custom HTML help with Fortigate FW
              kloby

              Thnx for reply,

              I tried with http connection but nothing.I cant put online my FW but all the code from that dashboard is in my post.

              You have demo fortigate online on https://fortigate.com/
              user:demo
              password: fortigate

              This is screen of dashboard how it looks on fortigate. (http://x.x.x.x/system/widget/per_ip_usage?id=21)

              and this is how I get it on SolarW page, no data just spinning circle :)

              the code that I put on custom HTML is :

              <html>
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              <link href="http://x.x.x.x/20976/style.css" rel="stylesheet" type="text/css">
              <script type="text/javascript" src="http://x.x.x.x/20976/fweb_core_all.js"></script>
              <script language="javascript" type="text/javascript" src="http://x.x.x.x/20976/en/error.js"></script>
              <script type="text/javascript" src="http://x.x.x.x/20976/dashboard_mod.js"></script>
              </head><body onload="update_widget_frame(21, 'http://x.x.x.x/system/widget/per_ip_usage', 30);" class="main" style="border: 0; margin: 0;">
              <map name="db_21_map" id="db_21_map"></map>
              <table cellspacing="0" cellpadding="0" class="widget-table container">
              <tr><td class="dashboard-title">Per-IP Bandwidth Usage (<span id="db_21_time"></span>)</td></tr>

              <tr style="height: 100%; vertical-align: top;"><td align="center">
              <table id="db_21_table" class="list" cellspacing="1" cellpadding="1">
              <tr class="heading">
              <td>#</td>
              <td>IP Address</td>
              <td>VDOM</td>
              <td>Current Bandwidth</td>
              </tr>
              <tr class="chart_loading"><td colspan="5"><img src="http://x.x.x.x/images/loading.gif">
              </td></tr>
              </table>
              </td></tr>
              </table>

              <div id="overDiv" style="position:absolute; visibility:hidden;"></div>
              </body>
              <script type="text/javascript">
              var per_ip_usage_texts = {
                ip:           "IP Address",
                bw:           "Current Bandwidth",
                vdom:         "VDOM",
                bps:          "Bytes Per Second"
              }
              </script>
              </html>