Ad Widget

Collapse

SNMP Item name - ability to get it using walk on OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kanour
    Senior Member
    • May 2006
    • 105

    #1

    SNMP Item name - ability to get it using walk on OID

    Hi.

    I have got one suggestion in regards to SNMP item.

    Monitoring network interfaces brings a challenge, because it always depends how many interfaces you have got on the machine and also if you some of them are bonded.

    Eg:
    Having simple eth0 and eth1
    SNMP OID are ifInOctecs.1 and ifInOctecs.2. This is just a value.
    So if you monitor only those, you never know if this is eth0, bond0, or bge.

    Having bond on eth0 and eth1 (bond0)
    SNMP OID ifInOctecs.1 will no longer be related to eth0, but it will correspond to bond0.

    So cannot name the item appropriately. You know this is some interface only.

    Monitoring BSD, Windows, Solaris - the interface names are always different.

    PROBLEM
    =======
    This brings a problem with templates. One is not able to specifically name the SNMP items, and therefore one does not know if this is a bond interface or any other interface.

    The only way to know which interface is it is getting another OID ifDescr.1, etc. But that makes separate item. This does not work for graphs.

    SOLUTION
    ========
    It would be good, if we could add OID into the name of the Item which would pull the ifDescr.1 OID. That way we would show what interface is it in the item name and have the value next to it.

    MORE INFO
    ========
    I believe that OpenNMS is doing the same. They dynamically get the name for the interface to show you if this is eth0, eth1, etc.
  • kanour
    Senior Member
    • May 2006
    • 105

    #2
    I guess this is SNMP dynamic indexing.

    And I thought I read the manual :-)

    Sorry.

    Comment

    • kanour
      Senior Member
      • May 2006
      • 105

      #3
      If I think about it. It is not the same.

      Using dynamic index, I have to still create Item with interface description in name. So if I have Cisco switches, Linux, Windows, BSD servers, I have to create separate templates for each device, because the interface descriptions are different.

      If we dynamically pull the ifDescr in the name of the Item, we can have only one template with:
      Item name OID
      Net in <ifDescr1> <ifInOctecs>

      Such template can be assigned to any device, because it will automatically pull the interface name and it will disable those which do not exists.

      I hope that my calculations are correct :-)

      Comment

      • fmrapid
        Member
        • Aug 2010
        • 43

        #4
        Zabbix meta data associated with an item

        What you are asking for is related to an open feature request.

        This is to get additionnal generic data fields in the item table.

        Feature request


        Description thread of the feature


        What you are asking for specifically is a useful feature in auto-building item descriptions on creating an item and during auto-discovery runs.

        Having additionnal table fields related to items could be populated automatically by manual item creation, API calls for external built XML and for auto-discovery runs.

        This is what I call best practice.

        Cheers,

        fmrapid

        Comment

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

          #5
          See http://www.zabbix.com/wiki/doc/screenshots#section19

          Read http://www.zabbix.com/forum/showthread.php?t=19769 at "Low level discovery" point.

          And vote for my today request

          Comment

          • bashman
            Senior Member
            • Dec 2009
            • 432

            #6
            Originally posted by zalex_ua
            Sounds great, voted!
            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

            Comment

            • welkin
              Senior Member
              • Mar 2007
              • 132

              #7
              According to the scrrenshots, the automatic discovery is based on the MIB IfAlias,now what if not IfAlias delivers the right name but IfName? It would be cool to have any arbitrary item value in the description like:




              regards
              welkin

              Comment

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

                #8
                Originally posted by welkin
                According to the scrrenshots, the automatic discovery is based on the MIB IfAlias,now what if not IfAlias delivers the right name but IfName?
                Just use IfName instead of IfAlias, but a better way - voting for the ZBXNEXT-581

                Originally posted by welkin
                It would be cool to have any arbitrary item value in the description like:

                Yes, i'm agree with you

                Comment

                Working...