check-health: use :toarray's new delimiter=

This commit is contained in:
Christian Hesse 2026-05-13 16:40:42 +02:00
parent 395aaf50dd
commit bde5b9440e
5 changed files with 7 additions and 9 deletions

View file

@ -3,7 +3,7 @@
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
# https://rsc.eworm.de/COPYING.md
#
# requires RouterOS, version=7.19
# requires RouterOS, version=7.21
#
# check for RouterOS health state - state plugin
# https://rsc.eworm.de/doc/check-health.md

View file

@ -3,7 +3,7 @@
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
# https://rsc.eworm.de/COPYING.md
#
# requires RouterOS, version=7.19
# requires RouterOS, version=7.21
#
# check for RouterOS health state - temperature plugin
# https://rsc.eworm.de/doc/check-health.md
@ -30,8 +30,7 @@
}
:local TempToNum do={
:global CharacterReplace;
:local T [ :toarray [ $CharacterReplace $1 "." "," ] ];
:local T [ :toarray delimiter="." $1 ];
:return ($T->0 * 10 + $T->1);
}

View file

@ -3,7 +3,7 @@
# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
# https://rsc.eworm.de/COPYING.md
#
# requires RouterOS, version=7.19
# requires RouterOS, version=7.21
#
# check for RouterOS health state - voltage plugin
# https://rsc.eworm.de/doc/check-health.md