Host monitoring help

Halo, I need help to connect this two together.

/tool e-mail send to=xxxxxx@gmail.com subject=“this host is now up” tls=yes from=xxxxx@gmail.com body=“the client of ny is now up” server=74.125.25.109

/tool e-mail send to=xxxxxx@gmail.com subject=“this host is now down” tls=yes from=xxxxx@gmail.com body=“the client of ny is now down” server=74.125.25.109

tool netwatch>/ add host=192.168.1.200 up-script=up down-script=down interval=999ms

What I want to do is to monitor 192.168.1.200 host’s status. The first two line is working to send me mail to my gmail. And I’ve created host up and down status in net watch. But I can’t add them together so that I get mail when the host’s status changes. Can any one help please.

Add the following into the Netwatch Up tab in Winbox:

/tool e-mail send to=xxxxxx@gmail.com subject="this host is now up" tls=yes from=xxxxx@gmail.com body="the client of ny is now up" server=74.125.25.109

Likewise for the following to the Netwatch Down tab:

/tool e-mail send to=xxxxxx@gmail.com subject="this host is now down" tls=yes from=xxxxx@gmail.com body="the client of ny is now down" server=74.125.25.109

On status change, those scripts will get executed.

Additionally, your interval value of 999ms is invalid. You need an interval in whole seconds, entered as hh:mm:ss (so 00:00:01) in order to watch every 1 second. Also, 1 second seems quite agressive for a Netwatch. Consider this, the default Netwatch ping timeout is 1000ms and Netwatch tries 3 pings to reach a host. If it were to go down, Netwatch would take 3 seconds to have all three pings fail, but you are asking it to fire off the Netwatch every 1 second! Critical client monitoring could still probably benefit from something on the order of 5 minute (00:05:00) intervals.

While the scripts could be added via the command line, all special characters need to be escaped, it’s just easier to do via Winbox.

Thanks you very much. I tried in the way you described and it worked perfectly. Thanks again.