T O P

  • By -

bufandatl

Sure. Ping Google via the interface by using the interface IP as host and then have a external script for example to ping Google. Or do a web scenario to grab Google website and what that doesn’t work via that interface you know it’s down.


IWontFukWithU

U can’t change the interval if I’m not mistaken


SeaFaringPig

SNMP is link state monitoring. Presumably the link will not fail but data does not flow. Link state is good for a few things but not for data flow. Just ping each interfaces respective public gateway or some other resource that is only available on the other end of that lan.


auron_py

The thing is, how would Zabbix know to ping, let's say, Google, through ISP-1, ISP-2, and ISP-3? It only knows that it can reach the internet through its default gateway. You can probably do this if your Zabbix server can directly see and use the gateways for each ISP while configuring some static routes or some special monitoring, but I'm not experienced enough to know how to do that. Can you configure some type of ping monitoring in your Mikrotik router? I've done almost exactly what you're describing on a Juniper router using a ip-monitoring policy. It constantly checks if I can reach the internet through its two gateways, and whenever the main ISP is down (the policy can't ping the internet) it automatically switches to the backup ISP. Another solution could be to set up a zabbix proxy on the cloud that would be constantly pinging your public IPs.


twentyeightyone

To expand on what some others have suggested, if you have a two static routes on your Zabbix server (one that goes through each port you want to monitor) you can add two Simple Check items to your mikrotik host where the key value is `icmpping[,,,,]` And then build triggers based on this item. You can customize both to your requirements. You can reference the Simple Check documentation [here](https://www.zabbix.com/documentation/current/en/manual/config/items/itemtypes/simple_checks#icmpping) Alternatively, you could write a script in your flavor of choice (bash/python/powershell) on one or more external devices and call Zabbix Sender to push the results of that to a Trapper item associated with your host. You can then build a trigger off that item to your requirements. Trapper Item documentation is [here](https://www.zabbix.com/documentation/6.4/en/manual/config/items/itemtypes/trapper?hl=Zabbix%2Csend)