OPNsense Forum

English Forums => General Discussion => Topic started by: manilx on August 19, 2022, 07:26:08 pm

Title: howto: monit ping test
Post by: manilx on August 19, 2022, 07:26:08 pm
Hi

I've searched but didn't find a tutorial on this.

I want to use Monit to do a ping test to google to check if the wan is down. Every x seconds.

How can I do this?

I added a monit service/setting with: type "Remote Host", Address "8.8.8.8", Tests "Ping" all the rest defaults.
I don't know of this is correct.

Help appreciated.
Title: Re: howto: monit ping test
Post by: axsdenied on August 20, 2022, 02:31:02 am
Are you aware that OPNsense already does this with your wan interface?  It just checks the first hop and is available for view in the dashboard via the "Gateways" Widget.

You can also specify a "Monitor IP" via SYSTEM:GATEWAYS:SINGLE to something outside of your providers network.
Title: Re: howto: monit ping test
Post by: manilx on August 20, 2022, 05:19:04 pm
Thx.

I found out about this after posting this. "Disable Gateway Monitoring" was on, Turned it off and put 8.8.8.8 in the "Monitor IP".
I can now see the outages in the Reporting/Health/Quality.

But I'd still like to know if and how it's possible to do with Monit ping test.
Title: Re: howto: monit ping test
Post by: bsdfans on January 15, 2024, 12:18:10 pm
Anybody could be kind enough to show us a HOWTO about "monit ping test and auto reboot after ping failed"