Ad Widget

Collapse

How to get dynamic SNMP Indexes (no!, is not like ifindex)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qlixed
    Junior Member
    • Jul 2011
    • 4

    #1

    How to get dynamic SNMP Indexes (no!, is not like ifindex)

    For start with a right foot:
    NO, is not like ifSpeed["ifindex", ...]
    This is the problem:
    I'm Monitoring a Juniper SSG140 device, and this device expose via SNMP the policies configured and some statistics, but, obviusly, the number of policies configured is variable. Based on what? on nothing!, based on the number of policies configured in the device, as example i post a snmptable output:

    SNMP table: .iso.org.dod.internet.private.enterprises.netscree n.netscreenPolicy.nsPlyMonTable

    Code:
    Id	Vsys	PackPerSec	PackPerMin	TotalPacket	BytePerSec	BytePerMin	TotalByte	SessionPerSec	SessionPerMin	TotalSession
    41	0	0		0		0		0		0		0		0		0		0
    42	0	0		21		5979		0		6989		3194753		0		1		255
    49	0	5		8641		1173762		548		5638816		668109716	1		90		15279
    50	0	0		2		2886		0		321		348294		0		2		315
    So the first value in the table is:
    .1.3.6.1.4.1.3224.10.2.1.1.41.0 = 41
    .iso.org.dod.internet.private.enterprises.netscree n.netscreenPolicy.nsPlyMonTable.nsPlyMonId.nsPlyMo nVsys = 41

    The last 2 values (41 and 0) is the dynamic part of the OID. (0 is the virtual sys id, and 41 is the policy ID)

    In the MIB descriptions nsPlyMonId says: ""Policy Id, also used as index in this table""


    As you can imagine, each row is a rule created in the firewall and this information correspond with the statics of each rule.
    So i need a way to get this whole information, like a snmpwalk/snmptable do but in some kind of container for the Zabbix, how can i get this?

    Cheers!
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    If i understood correctly a new feature for 2.0 Low Level Discovery should helps you.
    And do not ask when 2.0 will be released, now you can try Pre-1.9.5 (alpha)

    Comment

    Working...