SDS status monitor https://status-sds.kaas.kit.edu/

Jan Behrens 9c165f162d Remove `htpasswd` (mount from OpenShift) %!s(int64=2) %!d(string=hai) anos
Crypt e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
File e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
Math e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
Net e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
System e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
config 994e1e5734 update permissions %!s(int64=4) %!d(string=hai) anos
logs e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
oldfiles 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
patchpanel b133889f17 weird patchpanel fix %!s(int64=2) %!d(string=hai) anos
pics 6355d16e35 'pics/stylesheet.css' löschen %!s(int64=2) %!d(string=hai) anos
.gitignore e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
.htaccess 9c165f162d Remove `htpasswd` (mount from OpenShift) %!s(int64=2) %!d(string=hai) anos
CorporateESC-Bold.woff 79d373b0ed Font %!s(int64=2) %!d(string=hai) anos
CorporateESC-Bold.woff2 b5b53e80c8 KATRIN logo font %!s(int64=2) %!d(string=hai) anos
Dockerfile a6912477e2 update Dockerfile %!s(int64=4) %!d(string=hai) anos
README.md 7a6f7dc34a parallelize polling %!s(int64=4) %!d(string=hai) anos
SDS_status_channels.php fb2da3ae30 updated FPD XHV cryopump valve status %!s(int64=2) %!d(string=hai) anos
SDS_status_functions.php 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
SDS_status_main.php f86f48ea60 K35 label changed %!s(int64=2) %!d(string=hai) anos
aircoils_settings.php 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
docker-compose.yml fde13e12a9 try BORA style with Docker + php/apache base %!s(int64=4) %!d(string=hai) anos
index.php 557d0120f3 minor change %!s(int64=2) %!d(string=hai) anos
index_beta.php 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
list.php 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
mace_settings.php 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
openssl.cnf e2e1770925 update Dockerfile, switch to ubuntu base, use cron for polling %!s(int64=4) %!d(string=hai) anos
poll_HV_data.php 04b23fa096 some code cleanup %!s(int64=2) %!d(string=hai) anos
poll_adei_data.php a21fd37a5c delayed readout message adjusted to appear after 15s %!s(int64=2) %!d(string=hai) anos
poll_data.sh aa95777525 Add feature to pull patchpanel relations from KaLi database %!s(int64=2) %!d(string=hai) anos
poll_database.php 615260b534 Fix IE offsets %!s(int64=2) %!d(string=hai) anos
stylesheet.css ab04861c05 Style sheet for updated page layout %!s(int64=2) %!d(string=hai) anos

README.md

SDS status monitor

  • Runs on Apache + PHP
  • Website served by Apache process
  • Data is polled in background at regular intervals
  • Needs write access to www directory for caching

Docker

Setup builds on Ubuntu 18.04 (bionic) and starts server + polling process.

Build & run locally:

docker build -t sds-status-monitor .
docker run -p 8001:80 --name sds-status sds-status-monitor
docker rm -f sds-status    # terminates container

Runtime arguments:

  • POLL_INTERVAL - polling interval for background process (default: 60 seconds)
  • POLL_SCRIPTS - list of PHP scripts to run in parallel for polling (default: 'poll_adei_data.php poll_HV_data.php')