This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

api.php is a Toolserver tool for providing real-time data about the Toolserver. It provides data in 5 formats.

All urls are in the format: http://toolserver.org/~soxred93/api.php?action=ACTION&format=FORMAT

This tool utilizes SPYC, in order to generate YAML. It is licensed under the MIT license.

Formats

edit

format=php

edit

Provides data in PHP's serialize() format.

format=xml

edit

Provides data in XML format.

format=json

edit

Provides data in JSON format.

format=yaml

edit

Provides data in YAML format.

format=txt

edit

Provides data in 's print_r() format.

Actions

edit

action=replag

edit

Tells the current replag for 5 servers: s1, s1-c, s2, s3, s3-c.

action=status

edit

Tells the status of 4 servers: s1, s2, s3, sql. Options are OK, DOWN

action=size

edit

Tells the current disk space for 1 server: hemlock:/home

Examples

edit