[dev.icinga.com #3172] Add process status to JSON response #1120
Comments
Updated by mfriedrich on 2012-10-11 15:10:27 +00:00
i'd rather export the status file creation time (within a new name), in order to let apps decide their timezone offsets themselves - absolute unix timestamp. |
Updated by ddegois on 2012-10-11 15:18:59 +00:00 Would you export it on each JSON as in HTML views ? |
Updated by mfriedrich on 2012-10-11 15:26:00 +00:00 i would remove the webservers time layer, which could be a possible source for errors. |
Updated by ddegois on 2012-10-11 15:30:51 +00:00 It might be interesting to keep it, I've several Icinga instances running over several timezones. It's interesting to have local time while looking at issues. Note that the warning display is relative, it just say how much second the status file is was not updated. This is absolutely time zone free and armored against sever <=> device time drift. |
Updated by mfriedrich on 2012-10-24 17:56:28 +00:00
|
Updated by ricardo on 2012-12-07 23:01:59 +00:00
in current dev/cgis. these are the values which got added: please test!!!
|
Updated by ddegois on 2012-12-07 23:56:18 +00:00 As prime view, it looks good, and python says it's valid json while the process is running but if I kill it, it gives me lot's of thing, in invalid format:
I think it should not contains Content-type: text/json; charset="utf-8". It's like HTTP headers where finished twice (\r\n are actually CR LF while all the file is LF).
Regards, [Edit: I also have a message every time I start icinga: "_mcleanup: gmon.out: Permission denied" but doesn't seems to trouble anything.] |
Updated by ricardo on 2012-12-18 17:04:50 +00:00 I know, but this is an actual bug. I open another Issue for this. |
Updated by ricardo on 2012-12-20 23:51:42 +00:00 I hope I fixed the problem with #3507. It's in current dev/cgis Can you test it please? thx |
Updated by ddegois on 2012-12-20 23:58:52 +00:00 At a first glance it looks pretty good, thanks ! I'll test it a bit deeper this WE if I have time. I'll also start aNag integration :D Regards, |
Updated by mfriedrich on 2013-04-06 21:53:53 +00:00
|
Updated by mfriedrich on 2014-12-08 09:27:36 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3172
Created by ddegois on 2012-09-25 12:28:13 +00:00
Assignee: ricardo
Status: Resolved (closed on 2013-04-06 21:53:53 +00:00)
Target Version: 1.9
Last Update: 2014-12-08 09:27:36 +00:00 (in Redmine)
Hello,
It would be nice to integrate a warning in JSON output when the process seems to not have updated status since long time, like the warning message in red under the top-left block in the HTML version (where the version, the update message and button stands)
I thought about a think like that:
This should not break retro compatibility.
Regards,
D.
Changesets
2012-12-07 22:52:57 +00:00 by ricardo 6e7fac0
2013-02-06 23:18:44 +00:00 by ricardo 2d21977
2013-02-06 23:55:48 +00:00 by ricardo 3e1e6d5
Relations:
The text was updated successfully, but these errors were encountered: