aboutsummaryrefslogtreecommitdiff
path: root/readme.md
blob: a3755af781a4e13766d80a39d9c59540d6f97963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# statuspage

A simple configurable status page for your hosted services. Reports issues via
email.

## Building

The usual rust build system. Just use `cargo build --release` if unsure and use
the resulting binary in `target/release/statuspage`. Once this is "stable
software" I will submit a PKGBUILD to the AUR.

## Configuration

The configuration file uses YAML and is supplied by path in the first argument
of the server. Until I make better documentation, you can infer usage from this
example:

```yaml
title: "metamuffin.org service status"
bind: 127.0.0.1:8000
interval: 60 # check interval in seconds

mail: # the entire mail section is optional
  from: status@example.org
  to: [admin@example.org]
  smtp_auth: !plain # can be !plain, !starttls or !tls
  smtp_server: 127.0.0.1
  smtp_port: 8025
#   smtp_username: admin # optional smtp auth
#   smtp_password: hunter2

services:
    - title: keks-meet
      url: https://meet.metamuffin.org/ # url shown on the page.
            # each service has a number of "checks" that need to
            # be successful for the service to be considered working.
      checks:
          - !pacman keks-meet-server # this uses pacman -Q to check the installed version of some software
          - !systemd keks-meet-server # this checks the ActiveState of a systemd service
          - !http { url: https://meet.metamuffin.org/ } # this checks that status code of a HTTP request for success

    - title: failing service
      checks:
          - !shell { title: "Do nothing unsuccessfully", command: "false" } # this runs a command and checks the exit code
```