Skip to content
/ PingBot Public

Python script that pings multiple user-defined hosts and sends a Pushover alert if a host is offline

Notifications You must be signed in to change notification settings

m-buck/PingBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PingBot

Python script that pings multiple user-defined hosts and sends a Pushover alert if a host is offline. Can be used with a cron job to regularly validate whether a website or hosts on a local network are accessible.

Requirements

Python 2.7

Pushover API Client by Thibauth

Getting Started

Install Pushover API Client - you can install python-pushover from Pypi with:

$ pip install python-pushover

Or you can install it directly from GitHub:

git clone https://github.com/Thibauth/python-pushover.git
cd python-pushover
pip install .

Set Pushover client, api, and device name

client = Client("client goes here", api_token="api token here", device="device name optional")

Set hostnames to check

hostname = ['localhost', '192.168.0.1', 'google.com']

Run the script

$ python ping.py

About

Python script that pings multiple user-defined hosts and sends a Pushover alert if a host is offline

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages