Technical Tip: Polling FortiManager/FortiAnalyzer resources through SNMP
Description
This article describes that FortiManager resources (CPU, memory and disk values) are available through SNMP with the RFC 1514 HOST-RESOURCES MIB.
Scope
FortiManager version 4 and above.
Solution
When polling the FortiManager through the SNMP RFC 1514 Host-resources MIB, the following values will provide CPU, memory, flash, and hard disk information:
CPU.
A FortiManager can have multiple processors; the calculation of the CPU usage (in %) is : (.1.3.6.1.2.1.25.3.3.1.2.1 + ... + .1.3.6.1.2.1.25.3.3.1.2.n)/n.
Memory.
Two OIDs must be taken into account:
- .1.3.6.1.2.1.25.2.3.1.5.1 (physical memory storage).
- .1.3.6.1.2.1.25.2.3.1.5.2 (swap memory storage).
Also, the hrStorageAllocationUnits must be taken into account:
- .1.3.6.1.2.1.25.2.3.1.4.1: 4096 (Physical Memory).
- .1.3.6.1.2.1.25.2.3.1.4.2: 4096 (Swap Memory).
The calculation of the available memory in Bytes is (physical memory storage * hrStorageAllocationUnits for Physical Memory)+(swap memory storage* hrStorageAllocationUnits for Swap Memory).
Flash disk.
The OIDs available are:
- .1.3.6.1.2.1.25.2.3.1.5.3 (Compact Flash Disk storage).
- .1.3.6.1.2.1.25.2.3.1.6.3 (Compact Flash Disk used).
Also, the hrStorageAllocationUnits must be taken into account:
.1.3.6.1.2.1.25.2.3.1.4.3: 1024 (Compact Flash Disk).
The total available flash disk space in Bytes is (Compact Flash Disk storage * hrStorageAllocationUnit for Compact Flash Disk).
The used flash disk space in Bytes is (Compact Flash Disk used * hrStorageAllocationUnit for Compact Flash Disk).
Hard disk.
The OIDs available are:
- .1.3.6.1.2.1.25.2.3.1.5.4 (Internal Hard Disk storage).
- .1.3.6.1.2.1.25.2.3.1.6.4 (Internal Hard Disk used).
Also, the hrStorageAllocationUnits must be taken into account:
.1.3.6.1.2.1.25.2.3.1.4.4: 4096 (Internal Hard Disk).
The total available hard disk space in Bytes is (Internal Hard Disk storage * hrStorageAllocationUnit for Internal Hard Disk).
The used hard disk space in Bytes is (Internal Hard Disk used * hrStorageAllocationUnit for Internal Hard Disk).
Related article:
Technical Tip: How to obtain MIBs and OIDs for FortiManager and FortiAnalyzer
