obsolete.computer

simplemonitor-web/.

An unbelievably basic web dashboard for SimpleMonitor.

Directory Listing

total 40K
drwxr-xr-x 5 4.0K Dec 5 10:03 ./
drwxr-xr-x 9 4.0K Dec 18 11:45 ../
drwxr-xr-x 2 4.0K Dec 5 10:01 css/
drwxr-xr-x 2 4.0K Dec 5 10:01 js/
-rw-r--r-- 1 50 Dec 5 10:01 .gitignore
-rw-r--r-- 1 652 Dec 5 10:01 index.html
-rw-r--r-- 1 248 Dec 5 10:03 LICENSE
-rw-r--r-- 1 1.2K Dec 5 10:15 README.md
-rw-r--r-- 1 96 Dec 5 10:05 summary.md

Download

Readme

SimpleMonitor-Web

If you run SimpleMonitor to keep an eye on your servers, you can use this to display your system status in a web browser.

How to use

  1. Set up a web-accessible folder and serve it via Nginx.
  2. Copy the code here into the folder.
  3. Configure SimpleMonitor to output its status.json file into a subdirectory of the web folder called status. You can run multiple instances of SimpleMonitor and have them write to different status files, if desired.
  4. Update the groups array in main.js so that it points to the .json file(s) greated by SimpleMonitor.
  5. Probably tweak some things I missed, and your status file should be rendered as a big pile of blocky indicators which turn red when individual monitors fail according to your SimpleMonitor config.

Credits

This code uses/references:

  1. SimpleMonitor, and its dependencies of course
  2. jQuery - an old but compatible version is bundled, no CDN necessary
  3. Isotope - an old but compatible version is bundled, no CDN necessary

Recent Changes

  • [fd6e235] 2024-12-05: Added license, readme, summary
  • [7902b59] 2024-06-10: added full page refresh every hour (to clear out removed monitors)
  • [3f1aa84] 2019-02-19: added refresh button
  • [e231338] 2018-11-21: made monitors dim when a status file goes stale
  • [664ab47] 2018-11-05: layout tweaks, added url parameter handling

License

This project is in the public domain.

Contributing changes back to this codebase and giving attribution when reusing this code are both wonderful things, but neither are necessary.

Meta