Netwatch script doesn't work

Hi, all.

I’ve added in netwatch tool up- and down-scripts

:log info "ON"
/tool fetch url="https://slack.com/api/chat.postMessage?token=xoxp-1234567890-12345678901-12345678901-1qaz2wsx3edc4rfv5tgb6yhn7ujm8iklo9&channel=@slackusername&text='ON'&icon_url=http://www.zlmedia.hr/wp-content/uploads/2013/05/mikrotik-zlmediahr-icon.png&as_user=false&username=mikrotik";

But only first command works. I get no message in Slack.
But if I run second comand in console or from script in script tool - it works.
What I did wrong?

You are missing “;” for end of command.

:log info "ON";
/tool fetch url="https://slack.com/api/chat.postMessage?token=xoxp-1234567890-12345678901-12345678901-1qaz2wsx3edc4rfv5tgb6yhn7ujm8iklo9&channel=@slackusername&text='ON'&icon_url=http://www.zlmedia.hr/wp-content/uploads/2013/05/mikrotik-zlmediahr-icon.png&as_user=false&username=mikrotik";

i got one same funkcion as your, if you want let me know.

Thanks for you reply, but it didn’t help me (

Thanks, It would be interesting to see your realisation.

tools/netwach host=74.125.135.138
up= /tool e-mail send to=“youremail@gmail.com” subject=“Internet Connection Status” body=([/system identity get name] . " back UP in " . [/system clock get time] . " on date " . [/system clock get date])
down= /tool e-mail send to=“youremail@gmail.com” subject=“Internet Connection Status” body=([/system identity get name] . " was DOWN in " . [/system clock get time] . " on date " . [/system clock get date])

check it out

hi iam using telegram messenger api for netwatch it works like a charm its easy to setup :slight_smile:

post it

I use “[/ system clock get date]” get “may / 27/2017”, how can we get “2017/05/27”

Slashes are used for folder levels. Dashes in date and time would be much better.