67e365c8b3526f3a8b3152dd7cfd5edd8041eb57
check_mirotalksfu.py - Nagios plugin for Mirotalk SFU server
This Nagios plugin will query a Mirotalk SFU server and report on its status. The "MIROTALKSFU OK" message will include the roundtrip response time, the number of rooms open, and the number of users connected.
Usage
The following parameters are supported by the plugin:
-H HOSTor--hostname HOST: specify theHOSTor IP address of the server to query-p PORTor--port PORT: specify the connectionPORTof the server-t SECONDSor--timeout SECONDS: specify the timeout of the request inSECONDSseconds-Sor--https: connect using HTTPS-A APIKEYor--apikey APIKEY: specify the API key asAPIKEYfor HTTP endpoints
Note that if running on LibreNMS in the official Docker container, then you must
first install the requests module by running apk add py3-requests inside the Dispatcher container. The full command, assuming your container is named
dispatcher, is
docker exec -it dispatcher apk add py3-requests
Languages
Python
100%