Skip to content

A self hosted ping monitoring script to check status of remote hosts/ip with a status page

Notifications You must be signed in to change notification settings

saltysteev/bc-ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bc-ping

A self-hosted ping monitoring script to check status of remote hosts/ip with a status page

screenshot

Screenshot

overview

I was looking for just a simple up/down ping monitor that tells me if it's up or down and some timestamps. Either they were too expensive, or too loaded with unnecessary features. I couldn't believe some companies are charging $50-$100 a month to just check the uptime of just a handfull of hosts. So I started writing this and now my company uses it as our daily ping monitor.

Simply, it pings (ICMP) a host IP or domain and displays the results in a Bootstrap styled status page. It tells you how long it's been either online, or offline, and also reports how long a host was down in a separate event page.

requirements

Use PIP, and the included requirements.txt file pip install -r requirements.txt

Or manually install the required modules: pythonping and dicttoxml.

setting up hosts

This script utilizes a SQLite3 database. Download a db browser of your choice and fill in each row for each host.

running the monitor

Simply run ping.py. It was developed to run as a service, so it does not have any output, you can use NSSM for setting this up. It will output the results as an XML file to wherever it is determined in the INI.

config file

The config.ini file included holds directory information as well as the ping interval. Change this to match your environment.

status page

Everything in the www directory works on a web server. It will not work with the file:// protocol. It also requires a pinch of manual effort if you change the directory settings.

About

A self hosted ping monitoring script to check status of remote hosts/ip with a status page

Resources

Stars

Watchers

Forks

Packages

No packages published