Ad Widget

Collapse

How to create a custom discovery rule in zabbix 4.0...

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    How to create a custom discovery rule in zabbix 4.0...

    Zabbix implementation of service.discovery (from what i can tell) could be an implementation of "Get-WmiObject win32_service" returned as a JSON array containing all serviced or matched services with filters.
    What i would like to ask is, how can i create a discovery rule that allow me to iterate a custom list of SERVICE.DISPLAYNAMES and create items for services found and services NOT FOUND "No such service (255)"

    service.discovery of course allow me to create items and triggers for all services found in the JSON array, but it wont allow me to create items and triggers for services NOT FOUND in the list.
    This is my understanding, please correct me if i am wrong.

    I have been looking into, if i in my discovery rule could create a list of names as the key (for example a template macro) and pass these to item creation for use in service.info[{IteratorName},state] and run it like a loop.
    Foreach name in macro run service.info[{NAME},state]

    So far i have not found a "list" key that would allow me to do this.

    Any advice?
    Last edited by drenriza; 14-08-2019, 11:39.

    #2
    Solved

    10 characters

    Comment

    Working...
    X