mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-health: use $LogPrintExit
This commit is contained in:
parent
b2d1b64bd2
commit
1f1fef9fb5
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
:global CheckHealthVoltagePercent;
|
||||
:global Identity;
|
||||
|
||||
:global LogPrintExit;
|
||||
:global SendNotification;
|
||||
|
||||
:local FormatVoltage do={
|
||||
|
@ -52,7 +53,7 @@
|
|||
:if ([ :typeof ($CheckHealthLast->$Temperature) ] = "num" && \
|
||||
[ :typeof ($CheckHealthCurrent->$Temperature) ] = "num") do={
|
||||
:if ([ :typeof ($CheckHealthTemperature->$Temperature) ] != "num" ) do={
|
||||
:log warning ("No threshold given for " . $Temperature . ", assuming 50C.");
|
||||
$LogPrintExit warning ("No threshold given for " . $Temperature . ", assuming 50C.") false;
|
||||
:set ($CheckHealthTemperature->$Temperature) 50;
|
||||
}
|
||||
:if ($CheckHealthLast->$Temperature <= $CheckHealthTemperature->$Temperature && \
|
||||
|
|
Loading…
Reference in a new issue