From 284cae9fdc5e3aa2248abbb225ddb813a1cdcd1f Mon Sep 17 00:00:00 2001 From: Andreas Bachlechner <62039342+bachandi@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:24:16 +0100 Subject: [PATCH] Print the used upsc call. --- lib/nut.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nut.pm b/lib/nut.pm index e34f397..b58e5b7 100644 --- a/lib/nut.pm +++ b/lib/nut.pm @@ -187,7 +187,7 @@ sub nut_update { } if(!$data) { - logger("$myself: unable to execute 'upsc $ups' command or invalid connection."); + logger("$myself: unable to execute '$upsc_cmd' command or invalid connection."); $rrdata .= ":$ltran:$htran:$ivolt:$ovolt:$bchar:$loadc:$mbatc:$nxfer:$atemp:$itemp:$humid:$battv:$nomba:$timel:$minti:$linef:0:0:0:0:0"; next; }