Pandora FMS community forums
API call to get overall status ? - Printable Version

+- Pandora FMS community forums (http://pandorafms.org/forum)
+-- Forum: Pandora FMS (http://pandorafms.org/forum/forum-3.html)
+--- Forum: Community support (English) (http://pandorafms.org/forum/forum-7.html)
+--- Thread: API call to get overall status ? (/thread-15249.html)



API call to get overall status ? - JonRussell - 06-12-2020

Hi,
I want to drive an external traffic light, that will light up red/amber/green LEDs based on the overall status of Pandora.
Is there an API call that will return the over all percentage of Normal, Warning & Critical Modules or Agents, similar to the percentage bars in the default Group View ?
i.e. if normal = 100% the traffic light will be green. If normal < 100%, and critical = 0%, the traffic light will be Amber, and if normal < 100% and Critical > 0% the traffic light will be Red.
I will notice the lights change colour in my office, before I have to check my email and the web site.
Are there any API calls that would give me an overall high level status ? Rather than me having to call all the Agents individually through the API and do the maths myself in a script ?
I looked but I couldn't find one ?
Thanks
Jon.