Created on
08-27-2024
08:56 AM
Edited on
04-17-2025
11:35 PM
By
Jean-Philippe_P
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):
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: |