Send MikroTik RouterOS push notifications with Signalgrid,
MikroTik boxes are great at detecting ugly little network problems before somebody calls you. This page shows two simple RouterOS examples that send a Signalgrid push notification when your WAN fails over or when an interface goes down or comes back up.
The first example uses Netwatch for a clean WAN failover signal. The second uses a small scheduled RouterOS script that watches an interface running state and sends an alert only when the state changes.
Useful for
- WAN failover alerts
- Primary internet down notifications
- Backup uplink active alerts
- Interface down notifications
- Interface up recovery alerts
- Router, switch, and uplink monitoring on your phone
WAN failover with Netwatch
RouterOS Netwatch can run an up-script and down-script when the monitored target changes state. That makes it a good fit for simple WAN failover notifications.
Replace YOUR_CLIENT_KEY and YOUR_CHANNEL_TOKEN, then choose a probe target that makes sense for your primary WAN path.
Interface down / up alerts
For interface state changes, a small scheduled RouterOS script is often the simplest option. This example polls ether1 every 30 seconds and only sends a Signalgrid notification when the interface changes from down to up or from up to down.
Change ether1 to the MikroTik interface you actually want to watch, such as a WAN port, an uplink, or another critical Ethernet interface.
Notes
- Netwatch supports state-based
up-scriptanddown-scriptexecution, which is why it is useful for a straightforward WAN failover alert. - RouterOS scripting can be triggered by tools like Scheduler and Netwatch, so both examples stay inside native MikroTik automation instead of requiring an external agent.
- RouterOS exposes a
runningstate on interfaces, which makes simple interface up/down monitoring possible with a scheduled script. - If you want less noisy alerts later, you can expand either example with a longer interval, a second confirmation check, or separate warning and critical notification types.