Ping Uptime Monitor - written in bash with redis backings
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Bergholz 78ff8a0eb7 improve 6 years ago
README.md improve 6 years ago
licence.md initial push 6 years ago
pum fix display error and calculation error 6 years ago
redis-bash-lib initial push 6 years ago

README.md

pum

Ping Uptime Monitor - written in bash with redis backings

usage

add domain or ip

./pum -add 192.168.1.1
./pum -add domain.tld
./pum -add ::1

remove domain or ip

./pum -rm 192.168.1.1
./pum -rm domain.tld
./pum -rm ::1

get stats for domain or ip

[markuman@cassiopeia pum]$ ./pum -stat somehost.tld
OK

Stats for [somehost.tld]

     Currently up: Yes!
     avg Ping-Time Today: 12.7218 ms
     Today:     Uptime: 100%    Downtime: 0%
     Overall:   Uptime: 99.500% Downtime: .499%
     Since: Sun Sep 15 21:16:58 CEST 2013        Based on 5208 pings

update invervall

fire up this in a cronjob

*/1 * * * * /bin/bash /home/user/pum/pum &>-

Or using ‘watch’ in a ‘screen’ session e.g.

watch --interval 60 ./pum &>-

for redis-bash library

see: https://github.com/caquino/redis-bash

todo/wishlist

  • average ping time
  • detailed ping stats for last 12-24 hours
  • list all monitoring clients