public-path-list = $instance/var/log/kvm.log # automatically symlink to srv/monitor/public/$service/file/
private-path-list = $instance/var/log/kvm.log # automatically symlink to srv/monitor/private/$service/file/
the cgi path should be hardcoded to `${monitor:cgi-path}/${:name}.cgi so $instance/srv/monitor/cgi-bin/kvm-log-parse`, this should be the only way to handle post requests
on cron, the command will be `${service:frequency} ${monitor:promise-executor-path} '${monitor:service-pid-folder}/${service:name}.pid' '${service:status-path}' '${promise_path}' `
TODO cron accepts 999 characters maximum for a command
and "monitor:promise-executor-path" is a script that would run a promise if not already on going (see `run-promise.py`)
TODO put `run-promise.py` in the software
Promise or script requirements
------------------------------
A promise should check something (like web cache, not too much slow queries, ...)
- MUST output the status.json in stdout
- SHOULD output on stdout
- MUST return 0 if status is good else != 0
- the status.json MUST contain "message" (string) which explains why the status is OK or bad
srv/monitor/public/monitor.haljson for kvm instance (example)