Check onlyoffice-stats
Overview
Checks OnlyOffice statistics and license usage via HTTP.
Pay attention that by default the info/info.json
page is only available from localhost. The OnlyOffice nginx configuration has to be modified if the exporter is not running locally (/etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf
: set allow ...
instead of deny all
on location ~* ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\d]+)?\/(info|internal)(\/.*)$
).
Fact Sheet
Check Plugin Download |
https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/onlyoffice-stats |
Check Interval Recommendation |
Every 30 minutes |
Can be called without parameters |
Yes |
Compiled for |
Linux, Windows |
3rd Party Python modules |
|
Help
usage: onlyoffice-stats [-h] [-V] [--insecure] [--no-proxy] [--test TEST]
[--timeout TIMEOUT] [--url URL]
Checks OnlyOffice statistics and license usage via HTTP.
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--insecure This option explicitly allows to perform "insecure" SSL
connections. Default: False
--no-proxy Do not use a proxy. Default: False
--test TEST For unit tests. Needs "path-to-stdout-file,path-to-
stderr-file,expected-retc".
--timeout TIMEOUT Network timeout in seconds. Default: 3 (seconds)
--url URL OnlyOffice API URL. Default: http://localhost
Usage Examples
./onlyoffice-stats --url http://localhost --timeout 3
Output:
Max 20 connections, licensed (expired) [WARNING], last hour: 3/7/12 views and 2/6/11 edits (min/avr/max), 13 unique users, v1.2.3
States
Alerts if
license expires in the next 10 days
license has expired
number of connections per hour reaches the licensed maximum
Perfdata / Metrics
conn_hour_edit_avr
conn_hour_edit_max
conn_hour_edit_min
conn_hour_view_avr
conn_hour_view_max
conn_hour_view_min
unique_users
Credits, License
Authors: Linuxfabrik GmbH, Zurich
License: The Unlicense, see LICENSE file.