Skip to content

isAlive is a simple monitoring cli application that sends an email if any of the specified endpoints return a non okay status code.

License

Notifications You must be signed in to change notification settings

christopherdiehl/isAlive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isAlive

isAlive is a simple http monitoring cli application that sends an email if the specified endpoint returns a non okay status code.

Config

Configuration files are stored in /home/$USER/.cache/isalive. Everything is stored in JSON for easy manipulation.

Usage

usage: isalive [<flags>] <command> [<args> ...]

A command-line monitoring application.

Flags:
  --help  Show context-sensitive help (also try --help-long and --help-man).

Commands:
  help [<command>...]
    Show help.

  add <endpoint>
    Add a new endpoint to monitoring.

  remove <endpoint>
    Add a new endpoint to monitoring.

  scan [<alert>]
    Scans the stored hosts

Cron

To run this command via cron job for more consistent monitoring and notifications, I suggest the following.

go install && go build && cp isAlive /usr/local/bin/isalive && chmod +x /usr/local/bin/isalive
crontab -e
0 * * * * /usr/local/bin/isalive scan true //run job every hour

About

isAlive is a simple monitoring cli application that sends an email if any of the specified endpoints return a non okay status code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages