mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-health: use $FormatLine
This commit is contained in:
parent
7ed70bdb26
commit
b1cb4cb10f
1 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
:global CheckHealthVoltagePercent;
|
||||
:global Identity;
|
||||
|
||||
:global FormatLine;
|
||||
:global IfThenElse;
|
||||
:global LogPrintExit2;
|
||||
:global ScriptLock;
|
||||
|
@ -93,8 +94,8 @@ $ScriptLock $0;
|
|||
subject=([ $SymbolForNotification ("high-voltage-sign,chart-" . [ $IfThenElse ($NumLast < \
|
||||
$NumCurr) "in" "de" ] . "creasing") ] . "Health warning: " . $Name); \
|
||||
message=("The " . $Name . " on " . $Identity . " jumped more than " . $CheckHealthVoltagePercent . "%.\n\n" . \
|
||||
"old value: " . ($CheckHealthLast->$Name) . " V\n" . \
|
||||
"new value: " . $Value . " V") });
|
||||
[ $FormatLine "old value" ($CheckHealthLast->$Name . " V") ] . "\n" . \
|
||||
[ $FormatLine "new value" ($Value . " V") ]) });
|
||||
} else={
|
||||
:if ($NumCurr <= $CheckHealthVoltageLow && $NumLast > $CheckHealthVoltageLow) do={
|
||||
$SendNotification2 ({ origin=$0; \
|
||||
|
|
Loading…
Reference in a new issue