harsxv/tinystatus
소개
Python 스크립트로 생성되는 작은 상태 페이지입니다.
시스템 및 인프라What you can do
- Monitor HTTP endpoints, ping hosts, and check open ports
- Responsive design for both status page and history page
- Customizable service checks via YAML configuration
- Incident history tracking
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
TinyStatus
TinyStatus is a simple, customizable status page generator that allows you to monitor the status of various services and display them on a clean, responsive web page.
Check out an online demo https://status.harry.id
| Light Mode | Dark Mode |
|---|---|
Features
- Monitor HTTP endpoints, ping hosts, and check open ports
- Responsive design for both status page and history page
- Customizable service checks via YAML configuration
- Incident history tracking
- Automatic status updates at configurable intervals
- Supports both light and dark themes
- Supports grouping
- Cards clickable (optional)
Prerequisites
- Python 3.11 or higher
- pip (Python package manager)
Installation
Clone the repository or download the source code:
git clone https://github.com/harsxv/tinystatus.git cd tinystatusInstall the required dependencies:
pip install -r requirements.txt
Configuration
Create a
.envfile in the project root and customize the variables:MONITOR_CONTINOUSLY=True CHECK_INTERVAL=30 MAX_HISTORY_ENTRIES=100 LOG_LEVEL=INFO CHECKS_FILE=checks.yaml INCIDENTS_FILE=incidents.md TEMPLATE_FILE=index.html.theme HISTORY_TEMPLATE_FILE=history.html.theme STATUS_HISTORY_FILE=history.json HTML_OUTPUT_DIRECTORY=/var/www/htdocs/status/Edit the
checks.yamlfile to add or modify the services you want to monitor. Example:- title: 'Group 1' checks: - name: GitHub Home type: http host: https://github.com url: https://docs.github.com/en expected_code: 200 - name: Google Public DNS type: ping host: 8.8.8.8 - name: Dummy MySQL Database type: port host: db.example.com port: 3306 - name: Home Server with Self-Signed Certs type: http host: https://homeserver.local ssc: True expected_code: 200(Optional) Customize the
incidents.mdfile to add any known incidents or maintenance schedules.(Optional) Modify the
index.html.themeandhistory.html.themefiles to customize the look and feel of your status pages.
Usage
Run the TinyStatus script:
python tinystatus.pyThe script will generate three files:
index.html: The main status pagehistory.html: The status history pagehistory.json: The status history and timestamp data
To keep the status page continuously updated, you can run the script in the background:
- On Unix-like systems (Linux, macOS):
nohup python tinystatus.py & - On Windows, you can use the Task Scheduler to run the script at startup.
- On Unix-like systems (Linux, macOS):
Serve the generated HTML files using your preferred web server (e.g., Apache, NGINX, or a simple Python HTTP server for testing).
Using Docker
In order to run the script using Docker:
docker build -t tinystatus .
docker run -ti --rm --name tinystatus -v "$PWD":/usr/src/myapp -w /usr/src/myapp tinystatus
Customization
- Adjust the configuration variables in the
.envfile to customize the behavior of TinyStatus. - Customize the appearance of the status page by editing the CSS in
index.html.themeandhistory.html.theme. - Add or remove services by modifying the
checks.yamlfile.
Porting TinyStatus
TinyStatus porting are available in:
Contributing
Contributions are, of course, most welcome!
License
This project is open source and available under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…