mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-health: work with battery property
Seen on wAP R... No idea what this is.
This commit is contained in:
parent
9ce5d722b3
commit
39815662f7
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
:local CheckHealthCurrent [ / system health get ];
|
:local CheckHealthCurrent [ / system health get ];
|
||||||
|
|
||||||
:foreach Voltage in={ "psu1-voltage"; "psu2-voltage"; "voltage" } do={
|
:foreach Voltage in={ "battery"; "psu1-voltage"; "psu2-voltage"; "voltage" } do={
|
||||||
:if ([ :typeof ($CheckHealthLast->$Voltage) ] = "num" && \
|
:if ([ :typeof ($CheckHealthLast->$Voltage) ] = "num" && \
|
||||||
[ :typeof ($CheckHealthCurrent->$Voltage) ] = "num") do={
|
[ :typeof ($CheckHealthCurrent->$Voltage) ] = "num") do={
|
||||||
:if ($CheckHealthLast->$Voltage * (100 + $CheckHealthVoltagePercent) / 100 < $CheckHealthCurrent->$Voltage || \
|
:if ($CheckHealthLast->$Voltage * (100 + $CheckHealthVoltagePercent) / 100 < $CheckHealthCurrent->$Voltage || \
|
||||||
|
|
Loading…
Reference in a new issue