Python script to generate html report of device online/offline status
10K+
Python script to generate material design html report of devices' online/offline status. A cheap/fun reporting solution. This can be used for for servers, networking equipment, IOT devices, anything that's "pingable". Supports:
100% Devices Up / Failing Devices
bash -c "$(curl -sL https://raw.githubusercontent.com/circa10a/Device-Monitor-Dashboard/master/install.sh)"
[
{
"url": "www.github.com",
"port": 443,
"alias": "GitHub"
},
{
"url": "www.reddit.com",
"port": 443,
"alias": "Reddit"
},
{
"url": "www.google.com",
"port": 80,
"alias": "Google"
},
{
"url": "www.apple.com",
"port": 80,
"alias": null
}
]
./hostnames.json default output= ./index.html`)python report.pydocker run -d -p 80:80 -v ~/path/to/your/hostnames.json:/usr/share/nginx/html/hostnames.json --name monitor circa10a/device-monitor-dashboard
Note: Wait 5 min for cron job to execute and render an index.html
git clone https://github.com/circa10a/Device-Monitor-Dashboard.git
cd Device-Monitor-Dashboard
docker build -t myrepo/monitor
docker run --name device-monitor -d -p 80:80 myrepo/monitor
- Known issue: Docker for Mac pings any address and returns success giving false results.
cd $path/to/project_directory/ && python report.py &> /dev/null/var/www/html

Content type
Image
Digest
Size
24.6 MB
Last updated
almost 6 years ago
docker pull circa10a/device-monitor-dashboard