Ad Widget

Collapse

Calculated Value - Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MRN345
    Junior Member
    • Nov 2022
    • 6

    #1

    Calculated Value - Help

    I am looking to calculate the number of items returned within an active agent item which returns the output of a powershell script to zabbix. The returned data samples are shown below.


    Click image for larger version

Name:	image.png
Views:	160
Size:	2.5 KB
ID:	455782Should return a value of 1


    Click image for larger version

Name:	image.png
Views:	172
Size:	3.0 KB
ID:	455783​Should return a value of 2

    I have tried creating a new calculated item but am not sure the syntax to extract the value. I have tried using
    Code:
    count(//Locked.Account.Users,30s,)
    but the value returned is always 1. When trying
    Code:
    count_foreach(\*\Locked.Account.Users,30s)
    the syntax is invalid so I am stumped.

    Attached Files
  • Singularity
    Member
    • Aug 2020
    • 81

    #2
    Use preprocessing to handle the output.

    Comment

    Working...