Ad Widget

Collapse

Update Inventory from Discovery Rule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sb195c@att.com
    Member
    • Oct 2017
    • 41

    #1

    Update Inventory from Discovery Rule

    I'm building a set of templates for Cisco Nexus devices, and some of the standard fields for Chassis/Model/Serial number are only in the ENTITY-SENSOR mib, so I have created a discovery rule to go find those and create item prototypes for system.hw.model and system.hw.serialnumber. I added an Application of "Inventory" and assigned these to that Application, however I"m noticing that for Item Prototype, there is no drop down for "Populates host inventory field". How do I do this?

    Zabbix version is 3.4.6
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Is not it registered for each Cisco Nexus device?

    There is only one host inventory on the host.
    For example, for items that automatically acquire and set multiple interfaces with discovery rules in the template, there will be no selection of inventory.

    Which value is used as the host's inventory value when there are multiple values?

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Originally posted by [email protected]
      I'm building a set of templates for Cisco Nexus devices, and some of the standard fields for Chassis/Model/Serial number are only in the ENTITY-SENSOR mib, so I have created a discovery rule to go find those and create item prototypes for system.hw.model and system.hw.serialnumber. I added an Application of "Inventory" and assigned these to that Application, however I"m noticing that for Item Prototype, there is no drop down for "Populates host inventory field". How do I do this?
      These OIDs are only one per device.
      Just add them as normal items.
      You can put those items in separated per MIB template and if you will find that it is Cisco device you can add such template to those devices.

      PS. I have my own stash of MIB based templates at https://github.com/kloczek/zabbix-te...ree/master/MIB, and if you will create such ENTITY-SENSOR mib template I'll be interested such template to collect it in my git repo
      PS2. Just checked http://www.oidview.com/mibs/0/ENTITY-SENSOR-MIB.html and seems like this MIB does not have at all any dynamic items so using LLDs to map OIDs to zabbix items seems like does not make to much sense.
      Last edited by kloczek; 06-03-2018, 16:44.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • sb195c@att.com
        Member
        • Oct 2017
        • 41

        #4
        Yeah for Cisco Nexus they don't list the values in ENTITY Mib for
        .1.3.6.1.2.1.47.1.1.1.1.13.1 - Chassis Model
        .1.3.6.1.2.1.47.1.1.1.1.11.1 - Chassis Serial

        You have to get it from the ENTITY-SENSOR mib in the entPhysicalTable with entPhysicaClass = chassis(3).

        I guess I can write an api script to go update the inventory, wish it was an option for discovered items though.

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          As long as zabbix has completely fixed inventory record it is not possible to implement some more complicated use cases.
          IMO current fixed inventory table with inventory fields should be changed to inventory_valu{,_uint,_str_text} and inventory table should contain records with inventoryid, invetory_type (float, int, text, str), inventory_name.
          This would allow creating custom inventory records.

          Try to think about for example map to inventory latencies of the avg IOs across many systems and use inventory aggregation to show some exact IOs latencies as the vector of with cumulative distribution function
          With extending zabbix history values to store vectors (probably as json strings) of the data and presentation layer using 3d graphs it would be possible to observe changes in cumulative distribution function of the latencies

          Maybe someone will sponsor implementing something like this (at least flexible/custom inventory entries)
          Rely on Zabbix developers to get custom monitoring features for your business needs
          Last edited by kloczek; 06-03-2018, 17:55.
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            As long as zabbix has completely fixed inventory record it is not possible to implement some more complicated use cases.
            IMO current fixed inventory table with inventory fields should be changed to inventory_valu{,_uint,_str_text} and inventory table should contain records with inventoryid, invetory_type (float, int, text, str), inventory_name.
            This would allow creating custom inventory records.
            On last Riga zabbix conference after one of the presentation in Q&A I've mentioned that zabbix custom inventory could be used as DB backend for CMDBs creating de facto standard for many different CMDBs (CMDB is very closely connected with monitoring and use one DB backed to store values used by CMDBs and monitoring would be very useful)

            Another type of use case for custom inventory entries is for aggregations data to vectors.
            Try to think about for example map to inventory latencies of the IOs and use inventory aggregation to show some exact IOs latencies as the vector of with cumulative distribution function
            With extending zabbix history values to store vectors (probably as json strings) of the data and presentation layer using 3d graphs it would be possible to observe changes in cumulative distribution function of the latencies
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment

            Working...