Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

OpenEnergyDashboard/harf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP ARF

The HTTP watchdog

harf barks when your services are down, making it easy to restart them either via systemd integration or by arbitrary shell commands. Unix only.

Sample config:

{
    "sites": [{
        "name": "Example Website",
        "url": "http://example.com/",
        "unit": "mainsite_fake.service"
    },
    {
        "name": "Example Website 404",
        "url": "http://example.com/nonexist/",
        "unit": "mainsite_fake.service"
    },
    {
        "name": "Test Site",
        "url": "http://localhost:8080",
        "cmd": "echo 'Test service is down!' > test.txt"
    }]
}

Sample output:

harf - HTTP Watchdog v.0.1.0

[NOT OK] Test Site
         |connection refused
         |Running command 'echo 'Test service is down!' > test.txt'
         +------------

[OK]     Example Website
[NOT OK] Example Website 404
         |404 Not Found
         |Restarting unit 'mainsite_fake.service'
         +------------

About

harf barks when your services go down

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages