FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
hrahuman_FTNT
Staff & Editor
Staff & Editor
Article Id 245243
Description This article describes how to monitor disk usage with SNMP OIDs.
Scope FortiGate.
Solution

The following OIDs are used to monitor disk usage with SNMP OIDs.


FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSystem.fgSystemInfo.

fgSysDiskUsage1.3.6.1.4.1.12356.101.4.1.6 <- Current hard disk usage (MB).
FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSystem.fgSystemInfo.

fgSysDiskCapacity1.3.6.1.4.1.12356.101.4.1.7
<- Total hard disk capacity (MB).


FORTINET-CORE-MIB:fortinet.fortinetCoreMib.fnCommon.fnTraps.fnTrapsPrefix.

fnTrapLogDiskThreshold1.3.6.1.4.1.12356.100.1.3.0.103

<- This oid will send the trap when the threshold is reached.

 

For example, below are the results after SNMP polling:

 

fgSysDiskUsage: 60 <- Disk usage in MB.

fgSysDiskCapacity: 16061 <- Disk capacity in MB.

 

Checking the same disk usage with the CLI command:

 

diagnose sys logdisk usage
Total HD usage: 62MB(60MiB)/16841MB(16061MiB)
Total HD logging space: 12630MB(12045MiB)
HD logging space usage for vdom "root": 3MB(3MiB)/12630MB(12045MiB)

 

The threshold can be set as below :


config log disk setting
    set full-first-warning-threshold {integer} --> (1 - 98, default = 75).
    set full-second-warning-threshold {integer} --> (2 - 99, default = 90)
    set full-final-warning-threshold {integer} --> (3 - 100, default = 95).
end