ayd-mailto-alert

command module
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 20 Imported by: 0

README

ayd-mailto-alert

SMTP email alert sender for Ayd alive monitoring tool.

Install

  1. Download binary from release page.

  2. Save downloaded binary as ayd-mailto-alert to somewhere directory that registered to PATH.

Usage

Use mailrc
$ cat ~/.mailrc
set smtp=smtps://smtp.gmail.com
set smtp-auth-user="your username"
set smtp-auth-password="your password"
set from="your name <your-email@example.com>"

$ export AYD_URL="http://ayd-external-url.example.com"

$ ayd -a mailto:your-email@example.com ping:your-target.example.com
Use environment variable
$ export SMTP_SERVER=smtp.gmail.com:465
$ export SMTP_USERNAME=<< your username >>
$ export SMTP_PASSWORD=<< your password >>
$ export AYD_URL="http://ayd-external-url.example.com"

$ ayd -a mailto:your-email@example.com ping:your-target.example.com

Options

Set all options through environment variable.

Variable Default Description
SMTP_SERVER SMTP server name and port.
SMTP_USERNAME User name for SMTP server.
SMTP_PASSWORD Password for SMTP server.
AYD_URL http://localhost:9000 Ayd server address.
AYD_MAIL_FROM Ayd? Alert <ayd@localhost> The From email address.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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