Skip to content
This repository has been archived by the owner. It is now read-only.

[dev.icinga.com #1217] add json output #551

Closed
icinga-migration opened this issue Feb 14, 2011 · 6 comments
Closed

[dev.icinga.com #1217] add json output #551

icinga-migration opened this issue Feb 14, 2011 · 6 comments
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Feb 14, 2011

This issue has been migrated from Redmine: https://dev.icinga.com/issues/1217

Created by mfriedrich on 2011-02-14 18:42:50 +00:00

Assignee: ricardo
Status: Resolved (closed on 2011-05-05 15:43:35 +00:00)
Target Version: 1.4
Last Update: 2014-12-08 09:39:56 +00:00 (in Redmine)


considering this addon, we might add json output next to csv ;)

http://exchange.nagios.org/directory/Addons/APIs/JSON/Nagios2JSON/details

maybe we'll also find the possibility for pdf? ;D

well and the bpaddon already has json output implemented - although they use perl.

Attachments

Changesets

2011-04-12 21:21:19 +00:00 by ricardo 400a21d

adding json output to notifications.cgi #1217

refs #1217

2011-04-14 20:12:12 +00:00 by ricardo 99ead08

added json output to avail.cgi #1217

added json output for error messages as well

refs: #1217

i must be kind of insane

2011-04-14 22:36:30 +00:00 by ricardo ab3ee95

added json output to outages.cgi, showlog.cgi and summary.cgi  #1217

refs:  #1217

just seeing json output all over the place

2011-04-15 17:46:21 +00:00 by ricardo e8c55e7

added json output to status.cgi and host section in config.cgi #1217

refs: #1217

it's pain in the bum writing it for config.cgi so this will take a while

2011-04-21 19:24:01 +00:00 by ricardo f0bbcb6

added json output to all of config.cgi #1217

refs: #1217

* try /icinga/cgi-bin/config.cgi?type=all&jsonoutput

2011-04-26 17:23:48 +00:00 by ricardo e4448d8

added json output to extinfo.cgi and tac.cgi #1217

refs: #1217

with this commit, all data you can request in csv is also available in json.

* added also json for tac.cgi
* you can request all data for a single host or service in extinfo including comments and downtime

2011-04-26 22:24:23 +00:00 by ricardo 969c212

added json output to all views in status.cgi #1217

refs: #1217

also added average values to availability report data

this should be the last commit for now and json output should be finished with this

2011-04-28 20:14:39 +00:00 by ricardo 40c0680

stop refreshing json output #1217

refs: #1217

2011-04-28 21:18:15 +00:00 by ricardo 5085c73

added cgi_json_version to json output and changed avail.cgi json vor average values #1217

refs #1217

2011-05-02 21:21:31 +00:00 by ricardo 767f315

escaping double quotes in json output #1217

refs: #1217

* added json_encode() function.
* all numbers are printed unquoted now
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 12, 2011

Updated by ricardo on 2011-04-12 21:25:59 +00:00

  • Assigned to set to ricardo

Started on this. seems quite easy to implement.

With current branch notification.cgi has json output. just add "&jsonoutput" to url!

more to come.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 26, 2011

Updated by ricardo on 2011-04-26 23:05:52 +00:00

  • Status changed from New to Feedback
  • Done % changed from 0 to 100

well, it's finally done.

took quite a while, but I think this way better than csv export.

Hopefully some people will use it.
Is there any list of addons for Icinga/Nagios which used to parse the html to get the data???
We should write to them and try to convince them to use json.

I also thought that it would be nice to accept json as input instead of cgi vars. This would add even more possibilities to use Icinga.

you can use it by adding "&jsonoutput" to the url. Also very nice is "/icinga/cgi-bin/config.cgi?type=all&jsonoutput". There you have a complete config dump in json format.

Well have fun with that.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Apr 27, 2011

Updated by mfriedrich on 2011-04-27 16:43:50 +00:00

from a short look, looks very nice - maybe you'll suggest that to the nagiosbp addon developer?

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented May 4, 2011

Updated by mfriedrich on 2011-05-04 14:40:51 +00:00

is this done for a first release now?

@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented May 5, 2011

Updated by mfriedrich on 2011-05-05 15:43:35 +00:00

  • Status changed from Feedback to Resolved
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Dec 8, 2014

Updated by mfriedrich on 2014-12-08 09:39:56 +00:00

  • Project changed from 19 to Core, Classic UI, IDOUtils
  • Category set to Classic UI
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.