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.
vifi
Staff
Staff
Article Id 349697
Description This article describes the steps to configure SNMP in FortiGate to monitor static routes in FortiGate via SNMP.
Scope FortiGate v7.2.9.
Solution
  • Configure SNMP agent and SNMP community on the FortiGate:

 

config system interface
    edit "port3"
        set vdom "root"
        set ip 10.190.0.1 255.255.192.0
        set allowaccess ping https ssh snmp http --> Enable SNMP in the port where polling will be performed.
        set type physical
        set snmp-index 3
    next
end

 

config system snmp sysinf
    set status enable
    set description "SNMP_Agent"
end

 

Picture1.png

 

Picture2.png

 

  • Check the routing table on FortiGate.

 Picture3.png

 
  • Issue snmpwalk command:

 

snmpwalk -c snmptest -v2c 10.190.0.1 1.3.6.1.2.1.4.21.1.9

 

The OID to be used to monitor static routes is 1.3.6.1.2.1.4.21.1.9.

 

The configured static routes will be polled.

 

scc.png

 

Related article: 

The correct OID to monitor each interface state