Проверяет наличие узла в сети. Создаем System- Script-PingMonitor. И вставляем сhatbot_id и сhat_id (в примере 11111111)
:if ([/ping 192.xxx.xxx.xxx interface=ether1 count=3] = 0) do={
/log info «Ping failed.»
} else={
/tool fetch url=»https://api.telegram.org/11111111/sendMessage?chat_id=11111111&text=Host 192.xxx.xxx.xxx Ping!»
/log info «Ping to 192.xxx.xxx.xxx is successful, message sent to Telegram.»
}
Создаем автоматизацию для запуска скрипта System-Scheldule-PingMonitor
/system script run TrafficMonitorScript
