Troubleshooting Tip: FortiGate as Security Fabric not showing in FortiAnalyzer
Description
This article describes how to troubleshoot an issue where a FortiGate configured as a Security Fabric does not show in FortiAnalyzer.

Â
Scope
Â
FortiAnalyzer, FortiGate.
Â
Solution
Â
After configuring the Security Fabric (see Technical Tip: Configuring the root FortiGate and downstream FortiGates in Security Fabric) in FortiGate, FortiAnalyzer will show it on the right-hand side. In this example, the Security Fabric name is 'csf-test', and 'root-FGT' is used as a root Fabric.

Â
Perform troubleshooting in FortiAnalyzer by enabling the debug commands below to understand what may have gone wrong.
diagnose debug application oftpd 22 <root-FGT>
diagnose debug service csf 255
diagnose debug enable Â
The following are examples of debug outputs that show FortiAnalyzer is unable to pull Security Fabric group information from the root FortiGate.
Response [/bin/fazcfgd:1654:unknown]:
{ "result": "url": "\/csf\/adom\/others\/group"}, { "data": 160, "status": { "code": 0, "message": "OK"}, "url": "\/csf\/adom\/root\/group"}, { "status": { "code": -3, "message": "Object does not exist"}, "url": "\/csf\/adom\/root\/group"}]}Â
Check the root FortiGate configuration. Make sure to enable 'Allow access to FortiGate REST API' in the FortiAnalyzer GUI.

Â
After making sure the root FortiGate has REST API enabled for FortiAnalyzer access, the existing debug output will show the OFTP REST API pulling all information, which includes the Security Fabric and the members.
[T26164:oftp_restapi.c:1158] [FGVM01XXXXXXX] http resp :
HTTP/1.1 200 OK
..........
..........
[
{
"http_method":"GET",
"revision":"216.13.5",
"results":{
"devices":{
"fortigate":[
{
"appliance_info":[
],
"path":"FGVM01XXXXXXX",
"state":{
"hostname":"root-FGT",
.......
.......
"csf_enabled":true,
"csf_group_name":"csf-test",
"subtree_members":[
{
"serial":"FGVM01XXXXXXX"
}
],Â
Scenario 1: If the debug does not show it pulling the information, proceed to the steps below.
Â
Re-enter credentials for the root FortiGate by 'right-clicking' on the device -> Edit -> Admin User and Password.
                   Â

 
Restart the OFTP daemon:
diagnose test application oftpd 99 
Once it is successful, the Security Fabric will show in the GUI and CLI, as per the command below:
diagnose test application oftpd 30
Request [/bin/oftpd:10323:unknown]:
{ "client": "\/bin\/oftpd:10323", "method": "get", "params": [{ "target start": 1, "url": "csf\/adom\/FortiCarrier\/group"}, { "target start": 1, "url": "csf\/adom\/Tenmp\/group"}, { "target start": 1, "url": "csf\/adom\/root\/group"}]}
Response [/bin/oftpd:10323:unknown]:
...............
"vdom_oid": 3}], "chksum": "216.13.5"}], "status": { "code": 0, "message": "OK"}, "url": "csf\/adom\/root\/group"}]}
======= CSF info in ADOM [root] ========
group_name [csf-test], root_dev [root-FGT], cksum [216.13.5], member_number [2]
|--dev=root-FGT(FGVM01XXXX), vd=root, intf=(null), ip=(null), parent_dev=(null), parent_vd=(null), parent_intf=(null)
|--dev=Downstream-FGT(FGVM01XXXX), vd=root, intf=port1, ip=X.X.X.X, parent_dev=root-FGT, parent_vd=root, parent_intf=port1diagnose dvm csf <adom> group
config group
  edit "csf-test"
    set root "root-FGT"-"root"
    set chksum "216.13.5"
      config member
        edit "root-FGT"-"root"
          set sn "FGVM01XXXX"
        next
        edit "Downstream-FGT"-"root"
          set sn "FGVM01XXXX"
          set parent "root-FGT"-"root"
          set ip "X.X.X.X"
          set intf "port1"
          set parent-intf "port1"
        next
      end
    next
  endÂ

Â
Scenario 2: If the debug shows it pulling the information but it gives the following error, then perform the following steps:
csf import origin adom=root data={ "csf-name": "csf-test", "csf-root": "FGVMULTXXXXXXX", "cksum": "24.1.1293661544", "members": [ { "sn": "FGVMULTXXXXXXX" }, { "sn": "FGVM01TYYYYYYYYY", "intf": "XXXX", "ip": "X.X.X.X", "parent-intf": "XXXX", "parent-sn": "FGVMULTXXXXXXX" } ] }
Error map devid [FGVM01TYYYYYYYYY] to dvmsno error Â
The above error means device FGVM01TYYYYYYYYY is part of security fabric group but that device is not present in FortiAnalyzer. This can be verified by running the command 'diagnose dvm device list'. To fix this, in FortiAnalyzer, go to Device manager -> Add device, and add the details of the missing device. Note: If using the ADOM in FortiAnalyzer, all FortiGates of the security fabric group need to be present in the same ADOM as FortiAnalyzer.
After adding the device, restart the oftp daemon with the following command:
diagnose test application oftpd 99Related articles:
