A host has multiple items with a status string value of either "Ended OK" or "Ended Not OK".
I need to create another item that counts how many items have each value.
To find the value I am looking for, I was thinking of using the "find" function like this:
With that I could try to use the "sum_foreach", but I'm not sure how to make them work together.
Something like this, but valid.
Any suggestions?
I need to create another item that counts how many items have each value.
To find the value I am looking for, I was thinking of using the "find" function like this:
Code:
find(//ctm.job.status[*],,,"Ended Not OK")
With that I could try to use the "sum_foreach", but I'm not sure how to make them work together.
Something like this, but valid.
Code:
sum_foreach(find(//status[*],,"eq","Ended Not OK")
Comment