Welcome to the Tailscale Healthcheck repository! This Python-based Flask application monitors the health of devices in a Tailscale network. With it, you can easily check the health status of all devices, specific devices, and get lists of healthy or unhealthy devices.
- Device Monitoring: Check the health status of all devices in your Tailscale network.
- Specific Device Check: Query the health status of individual devices.
- Health Lists: Retrieve lists of healthy and unhealthy devices.
- Docker Support: Easily deploy the application using Docker.
- Lightweight: Built with Flask for quick responses and minimal resource usage.
To get started, clone the repository and install the required packages.
git clone https://github.com/PublicityMinistry-UoE-CU/tailscale-healthcheck.git
cd tailscale-healthcheck
pip install -r requirements.txt
Alternatively, you can use Docker to run the application:
docker build -t tailscale-healthcheck .
docker run -p 5000:5000 tailscale-healthcheck
After installation, you can start the Flask application by running:
python app.py
Visit http://localhost:5000
in your web browser to access the application.
The application provides several endpoints to monitor device health:
-
Get All Devices Health Status
- Endpoint:
/api/devices
- Method: GET
- Description: Returns the health status of all devices.
- Endpoint:
-
Get Specific Device Health Status
- Endpoint:
/api/devices/<device_id>
- Method: GET
- Description: Returns the health status of a specific device.
- Endpoint:
-
Get Healthy Devices
- Endpoint:
/api/devices/healthy
- Method: GET
- Description: Returns a list of healthy devices.
- Endpoint:
-
Get Unhealthy Devices
- Endpoint:
/api/devices/unhealthy
- Method: GET
- Description: Returns a list of unhealthy devices.
- Endpoint:
You can configure the application by modifying the config.py
file. Here, you can set parameters such as:
- Tailscale API Key: Your Tailscale API key for authentication.
- Polling Interval: How often the application checks device health.
We welcome contributions! If you want to help improve the Tailscale Healthcheck application, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/YourFeature
. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For the latest releases, please visit the Releases section. You can download and execute the latest version from there.
For further information, check the Releases section to stay updated.
Thank you for checking out Tailscale Healthcheck! Your feedback and contributions are valuable to us. Let's make device monitoring simple and effective together!