O
O
osada2022-03-14 13:00:53
Mikrotik
osada, 2022-03-14 13:00:53

Alert when one of the PSUs is turned off?

Several RB1100AHx4s are available, and there are two power supplies on board.

If for some reason a power supply is turned off, then there is no data in the logs about this. At least we tested ourselves by pulling the power cord out of one of the power supplies.

How can I set up to receive alerts in such cases? By email, by SNMP to Zabbix or in some other way.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TheBigBear, 2022-03-14
@osada

My script is just a couple of lines
: global volt [/system health get voltage];
:if ($volt < 131) do={
/tool ​​e-mail send to="[email protected]" body="$volt" subject="Power crash"
}
A couple of explanations
In your case, instead of voltage there will be a check psu1-voltage and psu2-voltage
Mikrotiks are powered by power supplies like BBP-20 (12 volts and a 7 Ah battery - in fact it gives 13.7 at the outlet and 12.8 at a fully charged battery) there is enough voltage, there are no glitches
Value 131 = 13.1 V Why exactly this - at the moment of power off, the voltage on the battery decreases to the nominal value smoothly - so I picked up the average
body = - write what you want
mail is configured in Tools - E-mail
The scheduler runs once an hour - you can do it at least once a minute (microtics on the battery can work up to two days, so it doesn’t matter to me) I didn’t
check that the letter has already been sent and you don’t need to repeat
it

L
Living, 2022-03-15
Dictionary @LivingDictionary

I'm not sure, but I would disable one of the PSUs to save its resource. If he is not needed, why should he work? Or 1 transistor is too complicated...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question