aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
AgeCommit message (Expand)AuthorFilesLines
2023-01-20check-health: monitor CPU load•••---- ✂️ ---- 🧮️📈️ Health warning: CPU load The average CPU load on MikroTik is at 76%! ---- ✂️ ---- 🧮️📉️ Health recovery: CPU load The average CPU load on MikroTik decreased to 64%. ---- ✂️ ---- Gravatar Christian Hesse1-0/+16
2023-01-02update copyright for 2023Gravatar Christian Hesse1-1/+1
2022-07-13check-health: update initialization of empty array•••Having the parenthesis here is important for valid syntax! Gravatar Christian Hesse1-2/+2
2022-05-11check-health: RouterOS v7 path syntaxGravatar Christian Hesse1-12/+12
2022-01-14check-health: adopt new data structure for ROS 7.x•••The PSU state has an empty string for type... Thus matching on name. routeros-7.x-3Gravatar Christian Hesse1-39/+49
2022-01-01update copyright for 2022Gravatar Christian Hesse1-1/+1
2021-11-16check-health: support hard lower limit for voltage•••... to detect slow decrease of voltage, for example with UPS. change-69Gravatar Christian Hesse1-0/+12
2021-11-16check-health: indicate voltage increase or decreaseGravatar Christian Hesse1-1/+3
2021-08-27check-health: use $ScriptLockGravatar Christian Hesse1-0/+3
2021-04-28check-health: pass origin to $SendNotification2Gravatar Christian Hesse1-5/+10
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'•••All scripts wait for the global functions on their own now. change-44Gravatar Christian Hesse1-0/+3
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 spikes•••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. Gravatar Christian Hesse1-4/+3
2020-11-20check-health: do not write unicode to logGravatar Christian Hesse1-1/+1
2020-11-19check-health: guard against temperature spikes•••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. Gravatar Christian Hesse1-0/+6
2020-11-19check-health: handle formatting by picking from string•••The mathematical way is more elegant, but just picking the char from string is shorter. 😜 Gravatar Christian Hesse1-4/+1
2020-11-19check-health: properly handle voltage value below one•••Before this produced division by zero... Gravatar Christian Hesse1-0/+3
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 threshold•••This helps against notification flooding. change-33Gravatar Christian Hesse1-6/+13
2020-10-16check-health: give error on messing health valuesGravatar Christian Hesse1-0/+4
2020-09-18extend magic pattern with "by RouterOS"•••This matches the string included in export. Gravatar Christian Hesse1-1/+1
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 license•••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 Gravatar Christian Hesse1-0/+1
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 multiply•••With RouterOS we have integral numbers only. This prevent from having friction that is cut off. Gravatar Christian Hesse1-2/+2
2020-01-24check-health: always calculate on the lower voltage value•••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! Gravatar Christian Hesse1-1/+1
2020-01-01update copyright for 2020Gravatar Christian Hesse1-1/+1
2019-10-18check-health: work with battery property•••Seen on wAP R... No idea what this is. Gravatar Christian Hesse1-1/+1
2019-10-14check-health: make threshold for voltage configurablechange-10Gravatar Christian Hesse1-3/+4
2019-08-28check-health: check for valid psu state data•••This is required with recovery notifications Gravatar Christian Hesse1-9/+12
2019-08-27check-health: also send recovery notificationsGravatar Christian Hesse1-0/+11
2019-08-27add script 'check-health'•••This may be incomplete... Please report if you have missing PSUs, ttemperature sensors, whatever. change-7Gravatar Christian Hesse1-0/+57