aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
AgeCommit message (Collapse)AuthorFilesLines
2021-04-28check-health: use $SendNotification2Gravatar Christian Hesse1-14/+14
2021-02-24global: give script or function name in log messagesGravatar Christian Hesse1-3/+4
2021-02-18global: drop script 'global-wait'change-44Gravatar Christian Hesse1-0/+3
All scripts wait for the global functions on their own now.
2021-01-01update copyright for 2021Gravatar Christian Hesse1-1/+1
2020-11-24check-health: re-measure until we have a valid valueGravatar Christian Hesse1-4/+4
2020-11-24check-health: use second measure against temperature spikesGravatar Christian Hesse1-4/+3
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.
2020-11-20check-health: do not write unicode to logGravatar Christian Hesse1-1/+1
2020-11-19check-health: guard against temperature spikesGravatar Christian Hesse1-0/+6
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.
2020-11-19check-health: handle formatting by picking from stringGravatar Christian Hesse1-4/+1
The mathematical way is more elegant, but just picking the char from string is shorter. 😜
2020-11-19check-health: properly handle voltage value below oneGravatar Christian Hesse1-0/+3
Before this produced division by zero...
2020-11-13check-health: decrease log severity to infoGravatar Christian Hesse1-1/+1
2020-10-17check-health: do not hardcode names, use as availableGravatar Christian Hesse1-37/+40
2020-10-16check-health: add deviation on temperature recovery thresholdchange-33Gravatar Christian Hesse1-6/+13
This helps against notification flooding.
2020-10-16check-health: give error on messing health valuesGravatar Christian Hesse1-0/+4
2020-09-18extend magic pattern with "by RouterOS"Gravatar Christian Hesse1-1/+1
This matches the string included in export.
2020-07-17global-functions: introduce and use $SymbolForNotificationchange-24Gravatar Christian Hesse1-6/+6
2020-07-17check-health: use $SymbolByUnicodeNameGravatar Christian Hesse1-5/+6
2020-07-16check-health: move symbol before textGravatar Christian Hesse1-5/+5
2020-07-15check-health: add symbol for voltageGravatar Christian Hesse1-1/+1
2020-07-15check-health: new symbol for high temperatureGravatar Christian Hesse1-1/+1
2020-06-19explicitly name the licenseGravatar Christian Hesse1-0/+1
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
2020-04-03check-health: use $LogPrintExitGravatar Christian Hesse1-1/+2
2020-03-27add doc/check-health.mdGravatar Christian Hesse1-0/+1
2020-03-24check-health: add fancy unicode symbolsGravatar Christian Hesse1-4/+4
2020-03-09check-health: add encoded degree signGravatar Christian Hesse1-2/+2
2020-01-24check-health: never divide, always multiplyGravatar Christian Hesse1-2/+2
With RouterOS we have integral numbers only. This prevent from having friction that is cut off.
2020-01-24check-health: always calculate on the lower voltage valueGravatar Christian Hesse1-1/+1
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!
2020-01-01update copyright for 2020Gravatar Christian Hesse1-1/+1
2019-10-18check-health: work with battery propertyGravatar Christian Hesse1-1/+1
Seen on wAP R... No idea what this is.
2019-10-14check-health: make threshold for voltage configurablechange-10Gravatar Christian Hesse1-3/+4
2019-08-28check-health: check for valid psu state dataGravatar Christian Hesse1-9/+12
This is required with recovery notifications
2019-08-27check-health: also send recovery notificationsGravatar Christian Hesse1-0/+11
2019-08-27add script 'check-health'change-7Gravatar Christian Hesse1-0/+57
This may be incomplete... Please report if you have missing PSUs, ttemperature sensors, whatever.