1. Failed: cannot extract value from json by path "$.[?(@.fsname=='{#FSNAME]')].bytes.total.first()": no data matches the specified path I get this error above. This video shows "$.[" but the blog shows "$[" without the dot.
I see I seriously mis-typed the formula above. I got the test working by substituting "/dev", so the correct one is: $.[?(@.fsname=='/dev')].bytes.total.first() --> $.[?(@.fsname=='{#FSNAME}')].bytes.total.first()
Thank you for your video, this was really useful information and clearly communicated. While not 'exactly' the same, this helped me work out how to achieve a very similar thing using the HTTP agent to pull data and discover objects via an API.
Hoe doe je dit als je meerdere jsonpaden hebt?
Is it possible to have host prototypes, with items, that depend on the master item on the main host?
1. Failed: cannot extract value from json by path "$.[?(@.fsname=='{#FSNAME]')].bytes.total.first()": no data matches the specified path
I get this error above. This video shows "$.[" but the blog shows "$[" without the dot.
I see I seriously mis-typed the formula above. I got the test working by substituting "/dev", so the correct one is: $.[?(@.fsname=='/dev')].bytes.total.first() --> $.[?(@.fsname=='{#FSNAME}')].bytes.total.first()
Got it! I used this technique to get the state of services from systemctl. Thanks lots :)
Thank you for your video, this was really useful information and clearly communicated. While not 'exactly' the same, this helped me work out how to achieve a very similar thing using the HTTP agent to pull data and discover objects via an API.