I want a script for netwatch.
If a host is offline that netwatch email to me.
This on port 25
I have setup tool email
In this email can you send the routerboard name?
No gmail please.
Make a script when a router is down, and in Netwatch in Down field put the name of the script
In script
/tool e-mail send to=“youremail@here” subject=“Router routernamehere is down”; :log info (“Router routernamehere is down - email send”)
Can the script automatic see and sent what for routerboard name he has?
Sorry for my bad Englisch
[/tool e-mail send to=.... subject=("Event at $[/system identity get name] @ $[/system clock get time]" ) body=($vMailBody)]
As I understand, you want the name of the host that is down and not the routerboard name that send you the email. Is that correct?
Can you doing that?