Skip to main content
tnesh
Staff & Editor
Staff & Editor
February 3, 2025

Troubleshooting Tip: Understanding 'fgfm diagnose debug' log

  • February 3, 2025
  • 0 replies
  • 4667 views
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:

 

diagnose debug application fgfmd 255

diagnose debug enable

    
To disable the debug processes:


diagnose debug disable

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

 

fnsysctl killall fgfmd <----- This will restart the 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: