Ad Widget

Collapse

Indexed SNMP OID's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frozen
    Junior Member
    • Nov 2008
    • 5

    #1

    Indexed SNMP OID's

    What I'm talking about is the OID that are indexed, how to get them to self expand..

    Like HP-MIB::fileSystemTable, it's indexed has the sub OID's of

    HP-MIB::fileSystemID1
    HP-MIB::fileSystemID2
    HP-MIB::fileSystemName
    HP-MIB::fileSystemBlock
    HP-MIB::fileSystemBfree
    HP-MIB::fileSystemBavail
    HP-MIB::fileSystemBsize
    HP-MIB::fileSystemFiles
    HP-MIB::fileSystemFfree
    HP-MIB::fileSystemDir

    I could access this by using string search but on a site where file system configs are different across the boards it will not be affective.

    What I kind of search for is to be able to give the fileSystemTable, that will then fetch the indexed OID's.. and make them so to say sub items of the main item.. I can then e.g. set triggers, graphs of each of the indexed items..

    Anyways it's not a part yet but I thought about coding it up. I know pretty well how to code the C part in the snmp poller so to say but I'm not to familiar with the reminder Zabbix so I might need help with that.. Anyways just wanted to know if it's interesting...

    Cheers O
    Last edited by Frozen; 19-11-2008, 17:05.
  • troffasky
    Senior Member
    • Jul 2008
    • 567

    #2
    To clarify: do you mean, say:

    HP-MIB::fileSystemName.1
    HP-MIB::fileSystemName.2
    HP-MIB::fileSystemBlock.1
    HP-MIB::fileSystemBlock.2
    HP-MIB::fileSystemBfree.1
    HP-MIB::fileSystemBfree.2
    HP-MIB::fileSystemBavail.1
    HP-MIB::fileSystemBavail.2

    ie detect .1, .2, .3, etc and create items for them automatically if they exist? If that's what you mean, then yes, that is interesting and has applications for network interfaces as well, where the indices could be anywhere from 1 to 50000 [and more] depending on the implementation.

    Comment

    • Frozen
      Junior Member
      • Nov 2008
      • 5

      #3
      Originally posted by troffasky
      To clarify: do you mean, say:

      HP-MIB::fileSystemName.1
      HP-MIB::fileSystemName.2
      HP-MIB::fileSystemBlock.1
      HP-MIB::fileSystemBlock.2
      HP-MIB::fileSystemBfree.1
      HP-MIB::fileSystemBfree.2
      HP-MIB::fileSystemBavail.1
      HP-MIB::fileSystemBavail.2

      ie detect .1, .2, .3, etc and create items for them automatically if they exist? If that's what you mean, then yes, that is interesting and has applications for network interfaces as well, where the indices could be anywhere from 1 to 50000 [and more] depending on the implementation.

      Yep it is but it's not as strait fwd as that

      HP-MIB::fileSystemID1
      HP-MIB::fileSystemID2

      Holds the INDEX values and they might not be incremented in a strait fwd manner.. but for the matter of the discussion yes that is exactly what I mean.

      SNMP tables/index are very very common, it's interfaces, it's process tables, etc... there is a lot of them there..


      Cheers O

      Comment

      Working...