Thursday, April 21, 2011

SNMP for FortiOS 4.3.

FOS 4.0
.1.3.1.6.1.4.12356.101.
_______________________1 - fgModel
_______________________2 - fgTraps
_______________________3 - fgVirtualDomain
____________________________1 - vdinfo
____________________________2 - vdtable
_______________________4 - fgSystem
____________________________1 - fgsysinfo
_________________________________3 - fgsyscpu
_________________________________4 - fgsysmem
_______________________5 - fgFirewall
____________________________1 - fgFwPolicy
etc

PRTG network monitor works perfect with FOS:
(for bandwidth monitor, use ADD SENSOR-->Bandwidth monitor. it is easier than OID)
a, snmpwalk find the oid for certain items.
snmpwalk -v 2c -c public 172.18.9.36 .1.3.6.1.4.1.12356.101.4.1.4

b, use snmpget to confirm there is return for that oid request.
snmpget -v 1 -c public 172.18.9.36 .1.3.6.1.4.1.12356.101.4.1.4
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
[root@localhost ~]# snmpget -v 1 -c public 172.18.9.36 .1.3.6.1.4.1.12356.101.4.1.3.0
SNMPv2-SMI::enterprises.12356.101.4.1.3.0 = Gauge32: 0

c, add sensor
d, add sensor to existing device
e, snmp
f, snmp custom
g, add the name and put oid there.
h, waiting for the polling and the beautiful graphic.

==================================================


"Initial version of FORTINET-FORTIGATE-MIB."
::= { fortinet 101 }
fgSystem OBJECT IDENTIFIER =============>.1.3.6.1.4.1.12356.101.4
::= { fnFortiGateMib 4 }
fgSystemInfo OBJECT IDENTIFIER =============>.1.3.6.1.4.1.12356.101.4.1
::= { fgSystem 1 }
fgSysCpuUsage OBJECT-TYPE ===========>CPU usage.1.3.6.1.4.1.12356.101.4.1.3
SYNTAX Gauge32 (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Current CPU usage (percentage)"
::= { fgSystemInfo 3 }
fgSysMemUsage OBJECT-TYPE ============>memory usage.1.3.6.1.4.1.12356.101.4.1.4
SYNTAX Gauge32 (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Current memory utilization (percentage)"
::= { fgSystemInfo 4 }


==========================
mpstat: individual display cpu usage:
.1.3.6.1.4.1.12356.101.4. ===>fortigatemib
.1.3.6.1.4.1.12356.101.4.4 ===>fgpressesor

Saturday, April 2, 2011