Mikrotik Tools

MIKROTIK NETWATCH MONITORING

Generate automated alerts for Telegram, WhatsApp, SMS, or Email

Service Configuration
Monitoring Targets
Host / IPDescriptionAction
RouterOS Script
/tool netwatch add host="10.10.10.2" comment="Access Point Office" down-script=":local id [/system identity get name]
:local dat [/system clock get date]
:local clk [/system clock get time]
:local hst $host
:local cmnt [/tool netwatch get value-name=comment [find host=$hst] comment]
/tool fetch url="https://api.telegram.org/bot/sendMessage?chat_id=&text=From: [ $id ] - $dat - $clk %0AIP/Host: $hst - $cmnt -> DOWN %E2%9D%8C" keep-result=no" up-script=":local id [/system identity get name]
:local dat [/system clock get date]
:local clk [/system clock get time]
:local hst $host
:local cmnt [/tool netwatch get value-name=comment [find host=$hst] comment]
/tool fetch url="https://api.telegram.org/bot/sendMessage?chat_id=&text=From: [ $id ] - $dat - $clk %0AIP/Host: $hst - $cmnt -> UP %E2%9C%85" keep-result=no"
Instructions

1. CREATE BOT

Message @BotFather with /newbot. Save the API Token provided.

2. GET CHAT ID

Message @get_id_bot to find your numeric ID.