Skip to main content
pathik_mehta
Staff
Staff
August 27, 2024

Technical Tip: How to monitor CPU usage for each core with SNMP OIDs

  • August 27, 2024
  • 0 replies
  • 7091 views
Description This article describes how to monitor CPU usage for each core with SNMP OIDs.
Scope FortiGate.
Solution

The following SNMP OIDs can be used to monitor per-core CPU usage on the FortiGate, depending on the particular statistics that are required:

 

fgProcessorTable - .1.3.6.1.4.1.12356.101.4.4.2 (Main SNMP table that includes the following OIDs).

fgProcessorUsage - .1.3.6.1.4.1.12356.101.4.4.2.1.2.x (CPU core usage averaged over last minute)

fgProcessorUsage5sec - .1.3.6.1.4.1.12356.101.4.4.2.1.3.x (CPU core usage averaged over last 5 seconds)

fgProcessorUserUsage - .1.3.6.1.4.1.12356.101.4.4.2.1.9.x (user space CPU usage averaged over last minute)

fgProcessorSysUsage - .1.3.6.1.4.1.12356.101.4.4.2.1.10.x (system space CPU usage averaged over last minute).

 

Note that 'x' is the index value of a specific CPU core (starting from 1). Also, onboard NPx processors (NP6xlite, NP6, NP7, etc.) are included in this list of processors and are identified by the output of fgProcessorType (.1.3.6.1.4.1.12356.101.4.4.2.1.4).

 

The following example shows the output of fgProcessorUsage5sec, which shows per-core CPU percentage usage averaged over the last 5 seconds (only valid for processor types that support this statistic):

 

cpu usage per core.png

 

For more information on obtaining SNMP MIB files, refer to the following documentation and KB article links. This process is similar for FortiGate, FortiManager, and FortiAnalyzer:

 

Related article:

Technical Tip: FortiGate SNMP Resource List

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!