Ad Widget

Collapse

Number of discovered items by LLD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krogon
    Junior Member
    • Mar 2014
    • 2

    #1

    Number of discovered items by LLD

    Hello,
    I would like to have single item with value corresponding with the number of discovered prototype items (Lowe Level Discovery).

    It would be also acceptable to use "calculated" item to match content of prototype items.


    Use case: my SNMP discovery identifies number of network interfaces. I would like to have item showing number of "connected" NICs (I can have additional discovery that filters only "connected"), but how to count prototype items?
    Is that somehow possible?

    Cheers
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    There's a kludgy way you can do it if you have an external check.

    Have the check return (as it must) the LLD items as json, but before doing so it can send a zabbix trapper value to a regular (not prototype) item with the count.

    This might not work if you are filtering them in zabbix as opposed to the external check of course, but you could put the filters there.

    There's another way to kludge it as well but more database specific (but works with regular LLD not external checks): You can use an ODBC item type to query the database for that host for all items discovered. Requires a bit of hard coding, e.g. to get the itemid of the prototype, tie that to the discovered items, etc.

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      You may use ODBC item like this one:


      Click image for larger version

Name:	nic.jpg
Views:	1
Size:	28.1 KB
ID:	313391

      Comment

      Working...