Phantomski
Regular Contributor
Hi,
first of all thanks for the amtm / Diversion and the latest update!
This one is more of a request, or an idea.
At the moment, the only way (I know of) how to remotely monitor the status of Diversion ad-blocking running on the router is to ssh into it and check the pixelserv is running by using
I would like to write a script, that would monitor the status of Diversion and report that status to the remote monitoring client (
Is there anything along these lines available (or planned for the future) and I just couldn't find it, or the only way at the moment would be a script daemon periodically checking the router's log or Diversion status and emitting changes?
Thanks
first of all thanks for the amtm / Diversion and the latest update!
This one is more of a request, or an idea.
At the moment, the only way (I know of) how to remotely monitor the status of Diversion ad-blocking running on the router is to ssh into it and check the pixelserv is running by using
ps | grep [p]ixelserv-tls
. This is a bit resource heavy (and thus not best to be invoked too often) and pollutes the log a bit too with dropbear logging.I would like to write a script, that would monitor the status of Diversion and report that status to the remote monitoring client (
curl
to Home Assistant for example). Ideally, that would be event-triggered and not periodically polled. So at first my idea was to use service-event
user script, but unfortunately no Diversion specific service events are emitted for Diversion status, apart from the generic dnsmasq restart. There's also no specific user script like wan-event
or openvpn-event
Is there anything along these lines available (or planned for the future) and I just couldn't find it, or the only way at the moment would be a script daemon periodically checking the router's log or Diversion status and emitting changes?
Thanks