Monit not alerting

Started by kpiq, May 13, 2023, 07:58:27 PM

Previous topic - Next topic
May 13, 2023, 07:58:27 PM Last Edit: May 13, 2023, 08:00:30 PM by kpiq
I noticed that Monit was not alerting me of loss of internet connectivity.  Today I disconnected my cable modem and ran /usr/local/opnsense/scripts/OPNsense/Monit/gateway_alert.  It keeps getting an exit code of 0, no matter what.

Fri May 12 18:40:55 2023 from x.x.x.x
----------------------------------------------
OPNsense 23.1

hostname:~ $ uname -a
FreeBSD hostname 13.1-RELEASE-p7 FreeBSD 13.1-RELEASE-p7 stable/23.1-n250430-7eb6eb035df SMP amd64

Have opened an issue in OPNSense's github.

Monit /usr/local/opnsense/scripts/OPNsense/Monit/gateway_alert returns exit=0 regardless of gateway status #6562