Script Cek Ping Litency Mikrotik
Script Cek Ping Litency Mikrotik
{
:local avgRtt;
/tool flood-ping 1.1.1.1 count=10 do={
:if ($sent = 10) do={
:set avgRtt $"avg-rtt"
}
}
:put $avgRtt;
}
Anda juga
bisa menambahkan dengan telegram bot sebagai notification Alert
{
:local avgRtt;
/tool flood-ping 1.1.1.1 count=10 do={
:if ($sent = 10) do={
:set avgRtt $"avg-rtt"
}
}
:if ($avgRtt > 30) do={/tool fetch url="https://api.telegram.org/bot1238915803:AAHVQ0kdI1FT-rJBpDBSt2sINdoveGHSYm4/sendMessage\?chat_id=731657108&text=Latency Tinggi $avgRtt+ms !!!" keep-result=no;
}
}