To find all managed entities with a severity of warning or critical:
curl -u username:password -X GET -s --data '{"target":"//managedEntity[(state(\"severity\")>1)]"}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool
The definition of the severity states can be found here:
Guide/geneos_xpath_ug.html#ExtractRparams
Severity is a state attributes: 0 = none, 1 = OK, 2 = warning, 3 = critical, 4+ = user.
Comments
0 comments
Please sign in to leave a comment.