Skip to content

bendiksolheim/monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

123 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitor

Build and publish docker image Docker Image Version

Screenshot of status page

Monitor services in your home lab for free, without all that enterprise hassle. Define services you want to monitor, and Monitor queries them over HTTP according to a specified interval. Report to one of more of the supported external services when something is wrong.

Configuration

{
  "services": [
    {
      "service": "vg.no",
      "schedule": "every 1 minute",
      "url": "https://www.vg.no",
      "okStatusCode": 200
    },
    {
      "service": "nas",
      "schedule": "every 1 minute",
      "url": "http://192.168.1.200:5000",
      "okStatusCode": 200
    },
    {
      "service": "Home Assistant",
      "schedule": "every 10 minutes",
      "url": "http://192.168.1.89:4357",
      "okStatusCode": 200
    },
    {
      "service": "Nginx",
      "schedule": "every 1 minute",
      "url": "http://macbook-server:80",
      "okStatusCode": 301
    }
  ],
  "healthcheck": {
    "url": "https://hc-ping.com/1234567890",
    "schedule": "every 10 minutes"
  }
}

The healthcheck property is optional. Skipping it will make this tool function just as a uptime checker.

Run

Runs as a docker container. Assuming you have saved your config in ./config/config.json, run this command:

docker run -v ./config:/config -p 3000:3000 bendiksolheim/monitor:latest

See docker-compose.yml for a docker compose example.

Prerequisites

Development

  1. Enable corepack (if not already enabled):

    corepack enable
  2. Install dependencies:

    pnpm install
  3. Create an example configuration:

    pnpm run create-config
  4. Generate some test data:

    pnpm run generate-test-data
  5. Run development server:

    pnpm dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •