Ad Widget

Collapse

Windows Discovery via Powershell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poxin
    Junior Member
    • Nov 2015
    • 14

    #1

    Windows Discovery via Powershell

    Edit: Figured this out. Not exactly how LLD is meant to be used in my original example. Understand the use-case now.


    I've been trying to figure this one out, there was even a similar post about the topic recently but it's still not clicking. Any help would be appreciated.
    Right now I have two UserParameters setup to grab some data via powershell on a couple windows servers. One of them outputs the following data under "UserParameter=s2d.virtualdisk"

    Code:
    {
    "data": [
      {
        "{#HEALTH}": "Healthy",
        "{#DISK}": "Disk-OS"
      },
      {
        "{#HEALTH}": "Healthy",
        "{#DISK}": "Disk-DATA"
      }
    ]
    }
    In Zabbix I have the following discovery configured which seems to work okay.

    Click image for larger version  Name:	wicaydeih4531.png Views:	1 Size:	6.0 KB ID:	380924

    I'm running into an issue with the Item prototype under that discovery rule with the error "Cannot create item: item with the same key".

    I've tried numerous combinations of settings with the item prototype with no success. This discovery rule is present on multiple hosts but it seems to run into a problem having "Healthy" multiple times as the same status.

    Items combinations such as: "s2d.virtualdisk[{#HEALTH}]".
    Last edited by poxin; 18-06-2019, 23:56.
Working...