GithubHelp home page GithubHelp logo

docker-online-check-pushover's Introduction

Basic Ping online check with Pushover notification in Docker optimized for Unraid

This is a simple container that will check if a domain name or IP address is pingable and send you a message with Pushover if it goes offline.

You can install it on your machine to get notified with Pushover if a site goes down, or you can install it on a remote machine to ping your server and get a notification if it's not reachable.

Env params

Name Value Example
HOST IP or Domainname to ping google.com
PING_INTERVAL Interval in wich the Host is pinged (in seconds) 300
PING_TIMEOUT Time that the Host has to answer the ping request (in seconds) 10
PING_RETRY Time to wait to retry it after the ping fails (in seconds) 3600
PUSHOVER_APP_TOKEN Pushover APP Token "YOURSECRETAPPTOKEN"
PUSHOVER_USER_TOKEN Pushover User Token "YOURSECRETUSERTOKEN"
PUSHOVER_TITLE Customized Pushover Message Title Online Check
PUSHOVER_MESSAGE Customized Pushover Message google.com is offline!
PUSHOVER_PRIORITY Customize the Pushover Priority ('-2': Lowest priority '-1': Low Priority

NOTE This Docker must be started with the follwoing parameter: "--restart=unless-stopped" otherwise it will not retry after a failed ping request and you must restart the container manually.

Run example

docker run --name OnlineCheckYourServer -d \
    --env 'HOST=google.com' \
    --env 'PING_INTERVAL=300' \
    --env 'PING_TIMEOUT=10' \
    --env 'PING_RETRY=3600' \
    --env 'PUSHOVER_APP_TOKEN=YOURSECRETAPPTOKEN' \
    --env 'PUSHOVER_USER_TOKEN=YOURSECRETUSERTOKEN' \
    --env 'PUSHOVER_TITLE=Online Check' \
    --env 'PUSHOVER_MESSAGE=google.com is offline!' \
    --env 'PUSHOVER_PRIORITY=0' \
    --restart=unless-stopped \
    ich777/online-check-pushover

docker-online-check-pushover's People

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.