Draft: offline monitor app
Serve an offline monitor app on a device to allow one to monitor the services from that device without internet connection, from the LAN.
Steps to do currently
- slapos proxy must add monitor-interface-url, and give special IPv6 URL as monitor-base-url to the SR to be monitored
- Root nginx proxy: Put nginx-proxy/nginx.conf in /opt/nginx as well as a certificate and key, and run nginx as root
- Enter the following monitor setup URL : https://[OFFLINE_MONITOR_IPV6]:8088/offline-monitor/#page=settings_configurator&url=https://[OFFLINE_MONITOR_IPV6]:8088/monitor-base-url/public/feeds&username=admin&password=PASSWORD
- Redistribute IPv6 in re6st conf:
daemon "exec dnsmasq --conf-file=/dev/null -p0 -k8 - -i $re6stnet_iface -F ${re6stnet_subnet%/*},ra-only,$((${re6stnet_subnet#*/}>64 ? ${re6stnet_subnet#*/} : 64)),1d"
main-interface enp0s31f6
interface enp0s31f6
- Put these input parameters:
<?xml version="1.0" encoding="UTF-8"?>
<instance>
<parameter id="download_url">https://officejs.erp5.net/document_module/20241218-47F9BCC3/Base_download</parameter>
<parameter id="title">Offline Monitor App</parameter>
</instance>
Nginx Proxy
- http://[SERVICE_IPV6]:8081 --> http://[OFFLINE_MONITOR_IPV6]:8088/monitor-base-url/
- https://[OFFLINE_MONITOR_IPV6]:8196 --> http://[OFFLINE_MONITOR_IPV6]:8088/offline-monitor/
IPV6 addresses:
- SERVICE_IPV6: IPv6 of partition containing service to monitor
- OFFLINE_MONITOR_IPV6: IPv6 of partition containing offline monitor app