Ad Widget

Collapse

Handling multiple values from the script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • singhn
    Junior Member
    • May 2019
    • 16

    #1

    Handling multiple values from the script

    Hi,

    I have a powershell script which return 4 values

    NetBIOS_Name : SINNB0094
    Description : Update
    InstalledOn : 8/10/2020 12:00:00 AM
    UpdateNumber : KB4565483

    I have been using userparameter to capture single value from the script output. However, this time, I need to collect 4 values and pass it to the zabbix server.

    Appreciate your guidance on this.

    Thanks,
    Nav
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Make a single item of the "text" type that will get all the values from the script and several dependent items in which you will select the values you need. (hint - you don't need to store the values of the master item) https://www.zabbix.com/documentation...ependent_items

    Comment

    • singhn
      Junior Member
      • May 2019
      • 16

      #3
      Thanks Hamardaban for the guidance. I was able to create a single text item and used regex to capture the values that I need. I do notice that the master item get stored. Is it expected?

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Specify for the master item in the "history storage period" field - "do not keep history".
        History storage period Select either:
        Do not keep history - item history is not stored. Useful for master items if only dependent items need to keep history.

        Comment

        Working...