Monitoring #234
-
Thanks for all the hard work creating this addon. What is the best way to monitor access to Wireguard? I know I can view the logs to view the current state of the handshakes and data throughput but is it possible to use this information (events, states, log scrapping) in automation to support connection notifications for example? Thanks Clive |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK - re-read the documentation and spotted the WireGuard REST API! What I wanted was an entity for each of my 3 peers (named peer1, peer2, peer3) for the last connection time. Here is my configuration.yaml entry using the RESTful sensor to make a single call to the WireGuard addon and then template sensors to split and format the data.
|
Beta Was this translation helpful? Give feedback.
OK - re-read the documentation and spotted the WireGuard REST API!
What I wanted was an entity for each of my 3 peers (named peer1, peer2, peer3) for the last connection time. Here is my configuration.yaml entry using the RESTful sensor to make a single call to the WireGuard addon and then template sensors to split and format the data.