Age | Commit message (Collapse) | Author | Files | Lines |
|
All scripts wait for the global functions on their own now.
|
|
|
|
|
|
The old spike detection was still prone to false alerts. Let's do a
second measurement and ignore on difference.
This results in more measurements being ignored, but temperature is
changing slowly only and it should not hurt.
|
|
|
|
Looks like devices out there suffer sensor issue or bug where
temperature value spikes and drops immediately:
https://forum.mikrotik.com/viewtopic.php?t=111030
https://forum.mikrotik.com/viewtopic.php?t=111109
https://forum.mikrotik.com/viewtopic.php?t=151242
... and possibly more.
Let's ignore these spikes, but at the same time increase the current
value to bring it into line - in case it's real.
|
|
The mathematical way is more elegant, but just picking the char from
string is shorter. 😜
|
|
Before this produced division by zero...
|
|
|
|
|
|
This helps against notification flooding.
|
|
|
|
This matches the string included in export.
|
|
|
|
|
|
|
|
|
|
|
|
Copyright (C) 2013-2020 Christian Hesse <mail@eworm.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
https://www.gnu.org/licenses/#GPL
https://www.gnu.org/licenses/gpl.html
https://www.gnu.org/licenses/gpl.md
|
|
|
|
|
|
|
|
|
|
With RouterOS we have integral numbers only. This prevent from having
friction that is cut off.
|
|
This makes sure an alert is triggered in both directions. Before we could have:
24.0V to 21.8V -> OK
21.8V to 24.0V -> Alert!
|
|
|
|
Seen on wAP R... No idea what this is.
|
|
|
|
This is required with recovery notifications
|
|
|
|
This may be incomplete... Please report if you have missing PSUs,
ttemperature sensors, whatever.
|