Hi, I am looking for a script that sends an email if one of the PSU’s fails (CCR 1036)
Who can help me with this?
Nobody can help? The people of Mikrotik also not?
You can try my script:
Notify about health state
This requires the base installation, see main README.
Thanks for the reply, but what is the complete email script. I have no experience writing scripts. And this is my limitation.
Can you show me the full email script please.
Showing the script source would not help… It depends on other scripts.
As said… Follow the main README, then install the wanted script.
I made an attempt, but the question marks are probably going wrong.
Who can help me
:log info ("$[/system health get psu1-state]")
:if ([/system health get psu1-state]?????) do={/tool e-mail send to="me@somewhere.net" subject=[/system identity get name] body=("PSU-state is down.psu-state is: ".[/system health get temperature])}
If you are really interested… This is the script source:
https://git.eworm.de/cgit/routeros-scripts/tree/check-health
But as said… It will not work on its own and has dependencies to other scripts.
This is precisely the problem. I am looking for a fully functioning script.
This is fully functional if you do the base installation to meed the requirements. ![]()