From 0ea33366e4a34c95ce47448243272f8264b16496 Mon Sep 17 00:00:00 2001 From: mag37 Date: Wed, 9 Apr 2025 18:21:07 +0200 Subject: [PATCH] prometheus hotfix --- dockcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index f0d74b3..20bd75d 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -419,8 +419,8 @@ unset IFS # Run the prometheus exporter function if [[ -n "${CollectorTextFileDirectory:-}" ]]; then - if type -t send_notification &>/dev/null; then - prometheus_exporter ${#NoUpdates[@]:-} ${#GotUpdates[@]:-} ${#GotErrors[@]:-} + if type -t prometheus_exporter &>/dev/null; then + prometheus_exporter ${#NoUpdates[@]} ${#GotUpdates[@]} ${#GotErrors[@]} else printf "%s\n" "Could not source prometheus exporter function." fi