Netwatch scripts

Hi

I am monitoring a number of hosts using Netwatch, I would like to be able to write the up and down events to the log file

There are two possible areas that I believe may need tweeking to get it working properly.

  1. The script
':log message="Host A down!"'

in the down section for example. Is this correct ?

  1. System > Logging

Under what ‘Topic’ would the events being noticed on the netwatch be categorized, i’ve tried a number of options e.g event, info but the information I am looking for does not write to log file


Any help would be great

Thanks

See: http://wiki.mikrotik.com/wiki/Manual:Scripting#Global_commands

Command is
:log <info|error|debug|warning> “Message Here"So in your case
:log info “Host A Down"If you wanted to allow that to be logged either allow info, or allow “netwatch,info”.
So
set 0 action=memory disabled=no prefix=”” topics=infoor
add action=memory disabled=no prefix=“” topics=netwatch,infoEtc…

perfect, thank you