-
Help with API – Red/Amber/Green output ?
Hi.
I want to query the Pandora FMS API, and get back some kind of status based on Red / Amber / Green
Currently, I keep an eye on the Agent Details page in the console, filtered by “Status Not Normal”.
I want to get some kind of summary using the API? Can someone point me to an example, or the correct API to use?
I want to build a traffic light output. If there are any red agents, the output is red. If there are no red, and some amber, the output is amber, and if everything is normal, the output is green.
Is that possible with the API to get the Agent Details output and then filter it?
Can anyone point me to some example code?
Although I’ve been using Pandora for many years, I’ve never used the API.
Thanks