Netwatch Notification Help

:local CHID “xxxxxxxx”;
:local BotID “xxxxxxxxxx”;
:local HostStatus “message”;
:local Message “$HostStatus”;
/tool fetch url=“xxxxxxxxxxxxxxx”;

Hello now I get notifications on up and down status, But I still need to know the duration between up and down
any help plz

See the date and the time of the messages…

Save up time in an global variable, then when going down calculate the difference in time.

Or you can use Splunk like I do and see it graphically:
http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/3

… or my script Notify on host up and down.