This is tool for reading data from Uptime Robot (external free uptime montior service; account required) written in Python.
- runs from cron - separates backend from output
- keys to API objects are hidden
- allows to hide (overwrite) hostnames/IPs/URLs
- configurable rate limiter
- simple static HTML as output - no JS support in browser required live version
Usual Python way. Install requirements. Take a look on sample_config.yaml. Configure as you need. Run the script, enjoy the output. Use -h for help.
- ratios - days, separated with minus sign - for what periods get uptime ratio
- requests_per_minute - how much API requests perform before sleeping for 60 seconds
- apikey - API key (from Uptime Robot)
- name - optional display name. Allows to overwrite friendlyName from Uptime Robot, which is used by default.
Add script to cron, redirect output to location readable by HTTP server.
*/30 * * * * cd ~/pum.py && ~/pum.py/venv/bin/python ~/pum.py/pum.py -d bootstrap > /tmp/pum.html && /bin/mv /tmp/pum.html /var/www/pum.html
See LICENSE file.