The ext-panel-stats
extension enables external or third-party systems to retrieve statistics
about Plesk usage. It is possible to retrieve data at a special URL. The
data include information about the number of subscriptions, domains,
customers, and resellers. The information can be presented in various
formats. This extension can be useful for integration with external
monitoring and statistics calculation systems.
The following techniques are demonstrated:
- Provision of information.
- Authentication mechanism.
- The use of the XML API to retrieve statistical data.
- The use of a key-value storage for keeping the extension’s settings.
- Creation and processing of a page with a settings form.
- Generation of default settings in the post-install script.