www/gatus: proposal for a Gatus plugin

Đang mở
#5,804 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php, sqlite, yaml
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Review the linked draft at https://github.com/larizzo/plugins/tree/gatus/www/gatus and the existing plugin patterns it follows, then check how www/gatus is added to the ports build in opnsense/tools. The requested scope is service controls, a services widget, and setup of /var/db/gatus for SQLite storage, with endpoints and listener settings left in /usr/local/etc/gatus.yaml. Done means the plugin is integrated and those behaviors work; the proposer says they will maintain it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

support

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
There is no plugin for active health checks of LAN services with a status page and
history. Monit covers some of it but its checks are hard to set up from the GUI and it
keeps no history. Running the checks on the firewall has the advantage that they keep
working when the server that hosts everything else is down.

Describe the solution you'd like
A small plugin for Gatus (https://gatus.io), which is already in ports as www/gatus
(amd64 and aarch64). It would only manage the service: enable/disable, log level, an
opt-in to run as root for ICMP checks, the services widget, and a setup script that
creates /var/db/gatus for SQLite storage.
Endpoints, alerting and the web listener stay in /usr/local/etc/gatus.yaml, as Gatus
documents them, rather than being modelled in the GUI, similar to CrowdSec's YAML files
and Caddy's caddy.d imports. The page notes that the file is not part of the
configuration backup.

It needs www/gatus added to the ports build in opnsense/tools.

Draft, tested on 26.7.7 (amd64): https://github.com/larizzo/plugins/tree/gatus/www/gatus.
I will maintain the plugin.

Describe alternatives you've considered

  • Uptime Kuma: Node.js and a much bigger footprint, not in ports.
  • Monit: no history or status page.

Additional context
Tested on 26.7.7 (amd64) with the FreeBSD package. As www, HTTP/TCP/DNS checks work but
ICMP checks fail (no raw sockets), as the port's pkg-message says, hence the opt-in.
Gatus binds 0.0.0.0:8080 by default, which the CrowdSec LAPI also uses, so the page
points users to the web section of the YAML.

Ngôn ngữ chính
PHP
Star
1.2k
Fork
926
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opnsense/plugins

Tất cả issue của opnsense/plugins

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.