FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
tnesh
Staff
Staff
Article Id 373486
Description This article describes how to analyze, identify error messages, and understand the 'fgfm diagnose debug' output logs.
Scope FortiManager.
Solution
  1. Run the following 'fgfm diagnose debug' in the FortiManager CLI console or SSH session:

 

FMG# diagnose debug application fgfmd 255

FMG# diagnose debug enable

 

  1. The user may try 'restart fgfmd daemon from FortiGate' or 'refresh device from FortiManager' to reinitiate the connection:

 

FortiGate CLI # fnsysctl killall fgfmd <----- This will restart fgfmd daemon from FortiGate

FortiManager GUI -> Device Manager -> Select the FortiGate device -> More -> Refresh Device.

 

  1. From the debug output, it will list down what are the CA Certificates that are available to broadcast.
  • If 'fgfm-ca-cert' is set in 'conf sys global', FortiManager will show 'custom CA certificate'.

 

set fgfm-ce-cert.png

 

  • If 'fgfm-ca-cert' is unset in 'conf sys global', FortiManager will only show 'default CA certificate'.

 

unset fgfm-ce-cert.png

 

  • If 'fgfm-cert-exclusive' is enabled in 'conf sys global', FortiManager will only use the configured 'fgfm-ca-cert' and 'fgfm-local-cert'.

 

set fgfm-cert-exclusive.png

 

  1. It will check for 'peer subject' and 'peer issuer' certificates received from FortiGate.

 

  • If the 'peer subject' certificate has invalid CN value (missing/not matching FortiGate serial number), FortiManager will prompt error '... serial number (FGVMXXXXX) in 'get' message doesn't match subject CN (x.x.x.x) in peer's certificate.'.

 

sn missing.png

 

  • If the 'peer issuer' certificate is not present in FortiManager, it will prompt the error '... unable to get local issuer certificate'.

 

unable get issuer cert.png

 

  1. Once certificate verification is successful, FortiManager will proceed to 'Create session'.

 

create session.png

 

Related articles:

Troubleshooting Tip: How to troubleshoot connectivity issues between FortiGate and FortiManager
Technical Tip: Setup custom certificate for FGFM protocol