IcingaChromedStatus
IcingaChromedStatus copied to clipboard
Icinga JSON support
Hi,
I'm part of the Icinga dev team.
We added JSON to our cgi a while ago and it would be much easier for you to parse the data in JSON directly.
This would solve your problem with the host without services as well.
Cheers Ricardo
Hi, I'm already rewriting Icinga Status for about week and I'm using JSON support already :) Really great thing, I was looking forwarded to it for long time.
Anyway as I finally decided (until I change my mind again) that I will still support older Icinga versions and Nagios so I still need to add some layer for this. I don't now release date yet but I hope it will be soon.
As for host without services - it is as you said. We run into same issue and I can see now 95 hosts on current icinga status icon and 96 on new one ;)
If you have any questions just let me know.
importent for JSON Implementation: https://git.icinga.org/?p=icinga-core.git;a=blob;f=Changelog_json;h=b12b467d71f51d1e13a17104d92ec3c394019270;hb=rbartels/cgi
And this Change in 1.7 (line 549): https://git.icinga.org/?p=icinga-core.git;a=blob;f=Changelog;h=eb70e90764242df685e9e2e2cf526e693f0e8a65;hb=rbartels/cgi#l549
I would implement it like this:
- check /icinga/cgi-bin/tac.cgi&jsonoutput -> if valid JSON then use jsonoutput otherwise fallback to old method If JSON 2. check "cgi_json_version" and store it in a var 3. call different urls for request depending on cgi_json_version 4. parse JSON
I can send you some links as well if you like
It is great! Thank you for info. It'll save me hours of searching and testing.