Trying to set up a simple system to monitor my network (approx 30 Mikrotik APs and clients). Found an article at
https://mikrotik.com/testdocs/ros/2.9/t ... twatch.php
that describes how to use Netwatch to do this.
Set up Netwatch for a couple of units, and it reports correctly if the unit is up or down.
Then tried to use the script at the end of the article to send me an email if a unit goes down. Used a script like
[admin@MikroTik] system script> add name=e-down source={/tool e-mail send
{... from="rieks@mt.lv" server="159.148.147.198" body="Router down"
{... subject="Router at second floor is down" to="rieks@latnet.lv"}
(changed the to and from addresses as well as the (mail)server IP-address),
No email is sent or received. Can't see anything in my mailserver logs.
Questions:
Most mail servers will need some kind of authentication to accept sending emails. How should this be entered into the script.
Anything else that should be changed in order for this to work?
Thanks!
-Olaf-