mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-31 21:51:35 +00:00
Compare commits
70 commits
ce64529c45
...
5525132bc4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5525132bc4 | ||
|
|
8c6707befd | ||
|
|
6dbd228c7f | ||
|
|
04f0d6a397 | ||
|
|
5221d79ff1 | ||
|
|
07771109fe | ||
|
|
76c2c97c6c | ||
|
|
65c24c0137 | ||
|
|
b2e7ec1b5c | ||
|
|
0d6a2a9381 | ||
|
|
14ad52b269 | ||
|
|
e2adfb362c | ||
|
|
6b8324a51a | ||
|
|
97a1088823 | ||
|
|
4fe3ba1d1f | ||
|
|
9c1e2d3897 | ||
|
|
b7e12faf6e | ||
|
|
d7951e52b9 | ||
|
|
a7f88ad976 | ||
|
|
1162f01ecc | ||
|
|
876b58804c | ||
|
|
c6137ef347 | ||
|
|
ee34a67fcb | ||
|
|
c8c9165e9c | ||
|
|
849755a604 | ||
|
|
f57030a2cd | ||
|
|
6b30813630 | ||
|
|
bf4e520eb2 | ||
|
|
3405b5c2f5 | ||
|
|
bea67c57b0 | ||
|
|
3a307c4ddd | ||
|
|
61d871efad | ||
|
|
214f2114a2 | ||
|
|
65a873c137 | ||
|
|
00c07aa260 | ||
|
|
f5045612e0 | ||
|
|
70f90a55b9 | ||
|
|
9e6eb5eccf | ||
|
|
880df18e07 | ||
|
|
60d7ca7b19 | ||
|
|
39dfc053ac | ||
|
|
a267bb05bd | ||
|
|
eeca8d7f1b | ||
|
|
f04b4fc2f3 | ||
|
|
82ca8e1bc1 | ||
|
|
edd2aa3ff3 | ||
|
|
efa4ea77db | ||
|
|
69accb0adb | ||
|
|
4302acad23 | ||
|
|
81a7eeb624 | ||
|
|
031838d27f | ||
|
|
3374d52561 | ||
|
|
b59606fd0e | ||
|
|
505d417c01 | ||
|
|
53d35bca72 | ||
|
|
cd80532802 | ||
|
|
ec119ab535 | ||
|
|
29ccb1a9e4 | ||
|
|
9a355bed08 | ||
|
|
09ba73e8b7 | ||
|
|
81d8dd00a4 | ||
|
|
583ce8ea3c | ||
|
|
b2b4fafced | ||
|
|
8c4ec2feb7 | ||
|
|
afacfeaa9d | ||
|
|
6cfb3032f2 | ||
|
|
95fdf20e21 | ||
|
|
afbf6594c4 | ||
|
|
f94e2e8fbc | ||
|
|
7a17c7c022 |
3 changed files with 2 additions and 5 deletions
|
|
@ -14,7 +14,6 @@
|
||||||
: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;
|
||||||
|
|
@ -58,8 +57,7 @@
|
||||||
$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\B0C\n\n" . "The average CPU utilization is at " . \
|
$Value . "\C2\B0" . "C") });
|
||||||
($CheckHealthCPUUtilization / 10) . "%!") });
|
|
||||||
:set ($CheckHealthTemperatureNotified->$Name) true;
|
:set ($CheckHealthTemperatureNotified->$Name) true;
|
||||||
}
|
}
|
||||||
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
|
:if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \
|
||||||
|
|
@ -67,8 +65,7 @@
|
||||||
$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\B0C\n\n" . "The average CPU utilization is at " . \
|
$Value . "\C2\B0" . "C") });
|
||||||
($CheckHealthCPUUtilization / 10) . "%!") });
|
|
||||||
:set ($CheckHealthTemperatureNotified->$Name) false;
|
:set ($CheckHealthTemperatureNotified->$Name) false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue