How can we help?

How do I monitor a FortiSwitch in FortiLink mode

Follow

Auvik can gather details for your FortiSwitches that are running in FortiLink mode and cannot be reached by the Auvik collector from your FortiGate. To monitor a FortiSwitch in FortiLink mode, you’ll need to add FortiOS REST API credentials to allow Auvik to gather the data from the FortiGate. This functionality is supported for FortiOS versions 6.0.0 and newer.

To use the FortiOS REST API credentials, you’ll need to do the following:

How to generate an API token

Create an admin profile

    1. Log into the FortiGate UI.
    2. Navigate to System > Admin Profiles.
    3. Click Create New.
    4. Enter a name (as desired).
    5. Set the access permissions as follows (see screenshot below for details):
      1. Firewall to Custom > Address to Read
      2. Network to Custom > Configuration and Router to Read
      3. System to Custom > Configuration to Read
      4. WiFi & Switch to Read
    6. Click OK.

image1.png

 

Create a REST API admin

    1. Log into FortiGate.
    2. Navigate to System > Administrators.
    3. Click Create New > REST API Admin.
    4. Enter a username (as desired).
    5. Select the admin profile from above.
    6. Disable the PKI Group.
    7. CORS Allow Origin is not required if the Auvik collector is on the local network.
    8. Set the trusted hosts to A.B.C.D/0 where A.B.C.D is the IP address of the Auvik collector.
    9. Click OK.
    10. Copy the API token. It cannot be retrieved later.
    11. Click Close.

Reference:

https://fndn.fortinet.net/index.php?/fortiapi/1-fortios/92/ 

How to add API credentials

image2.png

  1. Click Discovery in the side navigation bar.
  2. Click the Manage Credentials tab.
  3. Click the Device API Credentials tab.
  4. Hover over the Add Device API Credentials button and choose Fortinet.
  5. In Auvik, fill in the following detail:
    1. Name - a name or description for use in Auvik only
    2. Device - the device name that the API key is for
    3. API Key (from above)
    4. Port - the port that the API/HTTP service is running
  6. Click Test Connection to confirm your settings are accurate.
  7. Click Save.
Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request