GithubHelp home page GithubHelp logo

tonyaajjackson / m0nitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Monitor whether a host is responding to ping and alert changes via Discord Webhook. Run with cron to create a simple watchdog for if your server goes down.

Shell 100.00%

m0nitor's Introduction

m0nitor

Monitor whether a host is responding to ping and alert changes via Discord Webhook. Run with cron to create a simple watchdog for if your server goes down.

Setup

  1. Set up a Discord Webhook by following Discord's "Making a Webhook" in tutorial.
  2. In your desired directory, run
git clone https://github.com/tonyaajjackson/m0nitor.git; cd m0nitor; chmod +x install.sh; ./install.sh;

Run

Syntax

Arguments are required unless otherwise specified

-d/--debug (opt.)         Prints debug messages during run
--max-ping-fails (opt.)   Number of times ping can fail before an alert is sent
--host                    IP address or fully qualified domain name of host
--server-name             Name of server in alert
--webhook                 Discord webhook URL
-d/--debug (opt.)         Prints debug messages during run
--max-ping-fails (opt.)   Number of times ping can fail before an alert is sent
--host                    IP address or fully qualified domain name of host
--server-name             Name of server in alert
--webhook                 Discord webhook URL

Example cron entry

* * * * * m0nitor --host 8.8.8.8 --server-name Google --debug --webhook <YOUR_WEBHOOK_URL_HERE> --max-ping-fails 3

m0nitor's People

Contributors

tonyaajjackson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.