mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-08-01 06:01:35 +00:00
Compare commits
71 commits
5525132bc4
...
ce64529c45
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce64529c45 | ||
|
|
bbb251ade5 | ||
|
|
5e3070e36b | ||
|
|
c26c63c390 | ||
|
|
1abfc59b73 | ||
|
|
d0821113cc | ||
|
|
d90d8297c9 | ||
|
|
0e53aa7f4c | ||
|
|
1a1b936957 | ||
|
|
1a870c3092 | ||
|
|
1245260299 | ||
|
|
9423d7f1ef | ||
|
|
608045ce31 | ||
|
|
723cacec9f | ||
|
|
37387f5770 | ||
|
|
a68259e863 | ||
|
|
41c2d163a3 | ||
|
|
faa2465bcc | ||
|
|
17a4fd7766 | ||
|
|
5470d97a0d | ||
|
|
b828989d8c | ||
|
|
2176187257 | ||
|
|
6eddaccba9 | ||
|
|
dff4fb4a8c | ||
|
|
069de4c948 | ||
|
|
0c9c92eb5b | ||
|
|
3eb20152bb | ||
|
|
c1eda113b5 | ||
|
|
4613405037 | ||
|
|
9715f95ef5 | ||
|
|
c8a66955d3 | ||
|
|
9533f21be0 | ||
|
|
7a992f0557 | ||
|
|
3bf40ec73f | ||
|
|
1116585bee | ||
|
|
1826d2fc5b | ||
|
|
df65f7263d | ||
|
|
31e64f6e96 | ||
|
|
f825f484fe | ||
|
|
68a48e00bd | ||
|
|
15e4c93784 | ||
|
|
25608feb0e | ||
|
|
e38af4881d | ||
|
|
847c985cf4 | ||
|
|
fbf346fdd0 | ||
|
|
c096306e59 | ||
|
|
04eb34d8cc | ||
|
|
b2674a4e79 | ||
|
|
eaedb2d5b9 | ||
|
|
d27d7e0ecc | ||
|
|
415c3bc164 | ||
|
|
3e9ec8fa31 | ||
|
|
382057afc3 | ||
|
|
d2f906d9f8 | ||
|
|
0f61c22477 | ||
|
|
8d1a2f2834 | ||
|
|
307afc9a31 | ||
|
|
ff6fc0a7fc | ||
|
|
49c86440ed | ||
|
|
356661c535 | ||
|
|
6f78415c8a | ||
|
|
c2204d55f6 | ||
|
|
46cb8e870e | ||
|
|
0b06740dca | ||
|
|
2f134a2738 | ||
|
|
8c07b9f252 | ||
|
|
0bd7175e78 | ||
|
|
558b02c8bb | ||
|
|
3894b5c7d9 | ||
|
|
f252914622 | ||
|
|
4bc63b575d |
3 changed files with 5 additions and 2 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
:local FuncName [ :tostr $0 ];
|
:local FuncName [ :tostr $0 ];
|
||||||
:local ScriptName [ :tostr $1 ];
|
:local ScriptName [ :tostr $1 ];
|
||||||
|
|
||||||
|
:global CheckHealthCPUUtilization;
|
||||||
:global CheckHealthLast;
|
:global CheckHealthLast;
|
||||||
:global CheckHealthTemperature;
|
:global CheckHealthTemperature;
|
||||||
:global CheckHealthTemperatureDeviation;
|
:global CheckHealthTemperatureDeviation;
|
||||||
|
|
@ -57,7 +58,8 @@
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "fire" ] . "Health warning: " . $Name); \
|
subject=([ $SymbolForNotification "fire" ] . "Health warning: " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " is above threshold: " . \
|
message=("The " . $Name . " on " . $Identity . " is above threshold: " . \
|
||||||
$Value . "\C2\B0" . "C") });
|
$Value . "\C2\B0C\n\n" . "The average CPU utilization is at " . \
|
||||||
|
($CheckHealthCPUUtilization / 10) . "%!") });
|
||||||
:set ($CheckHealthTemperatureNotified->$Name) true;
|
:set ($CheckHealthTemperatureNotified->$Name) true;
|
||||||
}
|
}
|
||||||
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
|
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
|
||||||
|
|
@ -65,7 +67,8 @@
|
||||||
$SendNotification2 ({ origin=$ScriptName; \
|
$SendNotification2 ({ origin=$ScriptName; \
|
||||||
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
|
subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \
|
||||||
message=("The " . $Name . " on " . $Identity . " dropped below threshold: " . \
|
message=("The " . $Name . " on " . $Identity . " dropped below threshold: " . \
|
||||||
$Value . "\C2\B0" . "C") });
|
$Value . "\C2\B0C\n\n" . "The average CPU utilization is at " . \
|
||||||
|
($CheckHealthCPUUtilization / 10) . "%!") });
|
||||||
:set ($CheckHealthTemperatureNotified->$Name) false;
|
:set ($CheckHealthTemperatureNotified->$Name) false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 4.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue