Advanced Netwatch

I need a more advanced Netwatch.

I have searched the scripts and used google to search Mikrotik.com + forum and have not found what i need. Im hoping there is already a script to do what I want, or maybe something closer to help me write a script.

I need to be able to monitor more then one IP. I need to have more then one check fail. If more then one fails after X number of checks then execute a script.

Any thoughts on the best way to implement this ?

I suppose I could just hardcode pings into a script and do testing on the results and then conditional testing. But that seems like a lot of work. I am hoping someone has already done some of this before.

I think Netwatch needs the ability to fail only after X number of checks. This should be included in future versions.