Friday, December 31, 2010

SNMP

a, tools to monitor the traffic:
-prtg monitor
-don't use "auto-discovery" since the free version has only 10 sensor.
-prtgadmin/prtgadmin
-support changing community and customer OID



#snmpwalk -v 2c -c public 172.18.9.36 -O n .1.3.6.1.2; walking MIB-II
#snmpwalk -v 2c -c public 172.18.9.36 -O n .1.3.6.1.4; working private (enterprise)

basic tree layout:
-- fortinet : enterprises.12356
-- fnTraps : fortinet.0
-- fnSystem : fortinet.1
-- fnDomains : fortinet.2
-- fnIntf : fortinet.3
-- fnIp : fortinet.4
-- fnVpn : fortinet.9
-- fnBridge : fortinet.15
-- fnIps : fortinet.16
-- fnApplications : fortinet.17

fnSysCpuUsage OBJECT-TYPE
SYNTAX Gauge32 ( 0 .. 100 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Current CPU usage (percentage)"
::= { fnSystem 8 }

fnSysMemUsage OBJECT-TYPE
SYNTAX Gauge32 ( 0 .. 100 )
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Current memory utilization (percentage)"
::= { fnSystem 9 }


[root@localhost ~]# snmpwalk -v 2c -c public 172.18.9.36 1.3.6.1.4.1.12356.1.8 (cpu)
SNMPv2-SMI::enterprises.12356.1.8.0 = Gauge32: 0
[root@localhost ~]# snmpwalk -v 2c -c public 172.18.9.36 1.3.6.1.4.1.12356.1.9 (memory)
SNMPv2-SMI::enterprises.12356.1.9.0 = Gauge32: 10

No comments: