Task #38351
Display TYPO3 service health - status.typo3.org
| Status: | Resolved | Start date: | 2012-06-24 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Fabien Udriot | % Done: | 100% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| Votes: | 0 |
Description
status.typo3.org would display the status of our services within a web page towards End Users as Christian suggested.
Associated revisions
[FEATURE] Status Page with Zabbix Initial
The initial commit for the status.typo3.org project page.
Change-Id: Icccab302b9c6cf7a92dbe6e776a8978e22f7c8d9
Fixes: #38351
History
Updated by Fabien Udriot 12 months ago
Source of inspiration: https://status.github.com/
Could we easily fetch information from Zabbix?
A suggestion would be to use the API
http://www.zabbix.com/wiki/doc/api
Updated by Steffen Gebert 12 months ago
We could just include the ouput of this URL: http://monitoring.typo3.org/screens.php?fullscreen=1&elementid=7
Updated by Steffen Gebert 12 months ago
- Project changed from Server Team (private) to Server Team
- Status changed from New to Accepted
Updated by Fabien Udriot 12 months ago
- Assignee set to Fabien Udriot
Would you have a link where to get the same information but in json (or XML) format?
What server do you suggest we use for this service? Shall we put it on Monitoring considering the data will come from this latter anyway?
Updated by Steffen Gebert 12 months ago
I would put it on the same server, as otherwise the status page is down because of the monitoring software is down (or the other way around). An extra vhost should work. We could also just fetch the output of the URL shown above in a kind of proxy mode.
Updated by Fabien Udriot 12 months ago
To explore the possibilities with the API, I have tried two PHP wrappers around the Zabbix RPC API
The first one seemed outdated and it didn't work out for me. The second looked more promising after I fixed a bug. Anyway, it is a source of inspiration since handling the login which is required as a first transaction (even for guest). I managed to log in and get data given a hostId parameter. Code looks like that:
$api = new ZabbixAPI("http://monitoring.typo3.org/");
$result = $api->authenticate("user", "password", $error = "");
$host = $api->getHostByHostId(100xx);
var_dump($host);
However your URL mention an "elementId" parameter. Not sure how I can query this with API Element... Where did you configure that in the GUI?
At first, I though we could use "item.get" but I don't think we can address it with that.
http://www.zabbix.com/documentation/1.8/api/item/get
Besides that, I have spotted a Zabbix Console (written in Ruby) that looks very "geeky" (and cool). Don't know how really useful it is, though. ;)
http://www.zabbix.com/img/zabconf2011/presentations/Andrew_Nelson_-_Zabbix_Console.pdf
Updated by Bastian Bringenberg 10 months ago
Okay, I am not able to set this assigned to me.
Here is my status for now: http://git.bbnetz.eu/t3org_zabbix/overview
I tried to tidy up the API from Andrew Farley a little bit, not yet fully ready with this, but I am able to work with this right now.
The next steps for the weekend will be:
- Create a Basic layout with a container for all entries ( Without images and arts )
- Split the layout in 2 files; header and body. Both files will be included if is not $_GET['ajax']
- If everything runs ask the Design Team if they are able to improve the layout without a lot of work
Did I miss a thing?
Updated by Gerrit Code Review 10 months ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14226
Updated by Bastian Bringenberg 10 months ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset 3ae08c2a57decd3e770857da5d25a4adaa16a7e7.
Updated by Steffen Gebert 10 months ago
- Project changed from Server Team to status.typo3.org