OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Heathy65 on July 19, 2021, 01:07:03 pm

Title: Alerting on unbound service restart (via monit)
Post by: Heathy65 on July 19, 2021, 01:07:03 pm
I want to configure monit to alert (email) me when the unbound service restarts.

I have configured monit (via the GUI) and have this resultant configuration (shown from the CLI)

Code: [Select]
check file resolver.log with path "/var/log/resolver.log"
   if match "info: start of service (unbound" then alert

However I don't think I'm looking at the correct log file.

When I look via the GUI (via Services: Unbound DNS: Log File), these are examples of the entries in the unbound log file:

Code: [Select]
2021-07-18T14:30:15 unbound[34317] [34317:0] info: start of service (unbound 1.13.1).
2021-07-18T14:28:46 unbound[88879] [88879:0] info: service stopped (unbound 1.13.1).

When I look in resolver.log I don't see those entries.  I've looked around at other log files and can't find that information anywhere.  Any guidance appreciated.