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