Documentos de Académico
Documentos de Profesional
Documentos de Cultura
/system script
add dont-require-permissions=yes name=SendToTelegram owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
global telegramMessage\r\
\n:local botid\r\
\n:local chatid\r\
\n\r\
\nset botid \"1793347781:AAH9NX5O9vz2VoH7f-HeoTxM5BOEdKjJDNo\"\r\
\nset chatid \"-558950123\"\r\
\nif (\$telegramMessage != \"\") do={\r\
\n /tool fetch url=\"https://api.telegram.org/bot\$botid/sendMessage\?ch\
at_id=\$chatid&text=\$telegramMessage\" keep-result=no\r\
\n}"
/tool netwatch
add down-script="global telegramMessage \"Caída internet Saladoblanco\"\r\
\n/system script run SendToTelegram" host=192.168.66.254 interval=5s \
up-script="global telegramMessage \"Regreso internet Saladoblanco\"\r\
\n/system script run SendToTelegram"
/tool netwatch
add down-script="global telegramMessage \"Caída internet Saladoblanco\"\r\
\n/system script run SendToTelegram" host=192.168.66.254 interval=5s \
up-script="global telegramMessage \"Regreso internet Saladoblanco\"\r\
\n/system script run SendToTelegram"