domain-monitor

command module
v0.0.0-...-602e55c Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Go Report Card Go Reference

Domain monitor

Domain monitor is a containerized website monitoring app that includes checks for status and SSL certificate expiration dates, made in pure Go.

Quickstart

First, create a .env file containing the env variables:

POSTGRES_PASSWORD=pass
GRAFANA_PASSWORD=pass
SUPERVSSL_PASSWORD=pass
PRETTY_LOG=true

Once those have been set, deploy the service using:

./monitor.sh

A default user will be created alongside it, with the current folder name as username and password.

For more commands, use:

./monitor.sh -h

Documentation

Overview

DomainMonitor monitors websites, their SSL certificates, and stores the metrics in a PostgreSQL database.

This program is intended to be ran containerized, alongside a PostgreSQL container.

Usage:

domain-monitor [flags]

The flags are:

-d

-s

-u

Directories

Path Synopsis
Package database contains a thin wrapper around an sql Database to add methods to run queries more easily with the API and monitoring instances.
Package database contains a thin wrapper around an sql Database to add methods to run queries more easily with the API and monitoring instances.
Package logger contains wrappers around zerolog, a lightweight logging utility.
Package logger contains wrappers around zerolog, a lightweight logging utility.
Package domains contains all the methods required to interact with the domains in the database and the monitoring.
Package domains contains all the methods required to interact with the domains in the database and the monitoring.
Package server contains a Gin API as well as specifications for the objects it is intended to send and receive.
Package server contains a Gin API as well as specifications for the objects it is intended to send and receive.
Package user contains methods to interact with the users in the database.
Package user contains methods to interact with the users in the database.
Package monitor contains the main struct and methods to monitor a website.
Package monitor contains the main struct and methods to monitor a website.

Jump to

Keyboard shortcuts

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