httpmonitor

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 9 Imported by: 0

README

httpmonitor

httpmonitor is a small TUI application to monitor a single or multiple targets.

Overview

Details

Install

Releases

Check the releases page for the full list of pre-built binaries.

  1. Download the release for your os/arch
  2. Unzip to archive to get the httpmonitor binary
  3. Add the httpmonitor binary to your PATH
Source
go install github.com/ricoberger/httpmonitor@latest

Usage

Usage of httpmonitor:
  -body string
        The body to send with the HTTP checks.
  -config string
        The path to the configuration file. (default "/Users/ricoberger/.httpmonitor.yaml")
  -interval duration
        The interval to run the HTTP checks. (default 5s)
  -method string
        The HTTP method to use for the checks. (default "GET")
  -notification
        Enable desktop notifications, for failed checks.
  -notification-threshold duration
        Enable desktop notifications, for checkes which are longer than the threshold.
  -password string
        The password which should used, when the target requires basic authentication.
  -timeout duration
        The timeout for the HTTP checks. (default 2s)
  -token string
        The token which should used, when the target requires token authentication.
  -url string
        The url of the target to monitor.
  -username string
        The username which should used, when the target requires basic authentication.

To monitor a single target, the following command can be used:

httpmonitor -url https://example.com -interval 1s

To monitor multiple targets, a configuration file can be used:

targets:
  - name: example
    url: https://example.com
    method: GET
    body:
    username:
    password:
    token:
    notification:
    notificationThreshold:
    interval: 5s
    timeout: 5s

Development

To build and run the binary the following commands can be used:

go build -o ./bin/httpmonitor .
./bin/httpmonitor

To publish a new version, a new tag must be created and pushed:

make release-patch
make release-minor
make release-major

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL