OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: bobbythomas on March 29, 2019, 08:09:30 pm

Title: Issues with Monit notification
Post by: bobbythomas on March 29, 2019, 08:09:30 pm
Hi All,

I have a MultiWAN setup and I have configured monit to monitor my primary link status. Monit working fine but the email notification is not as I expected. I am receiving receiving ICMP success notifications but not failure notifications. There is no problem with standby internet connectivity and it was working previously with "CHANGED STATUS" condition, but now after the upgrade when I put that I get syntax error. Any suggestions?

Here is the alert settings config from the monitrc:

set alert abc@gmail.com  { icmp,instance } mail-format { Subject:$SERVICE on $HOST $EVENT (ISP LINK STATE CHANGE) } reminder on 10 cycles

And here is the service and service test settings config:

check host ISP-Link-status address xxx.xxx.xxx.xxx
   if failed ping then alert

Thanks in advance,
Regards,
Bobby Thomas
Title: Re: Issues with Monit notification
Post by: faunsen on April 28, 2019, 08:12:50 pm
am receiving receiving ICMP success notifications but not failure notifications. There is no problem with standby internet connectivity and it was working previously with "CHANGED STATUS" condition, but now after the upgrade when I put that I get syntax error. Any suggestions?
I wonder how that worked because CHANGED STATUS is for program tests.

Here is the alert settings config from the monitrc:

set alert abc@gmail.com  { icmp,instance } mail-format { Subject:$SERVICE on $HOST $EVENT (ISP LINK STATE CHANGE) } reminder on 10 cycles

And here is the service and service test settings config:

check host ISP-Link-status address xxx.xxx.xxx.xxx
   if failed ping then alert
Looks fine for me.
Can you ping the ISP address?
Do you get failure notifications if you select all events for abc@gmail.com?