From 46fcd2d72956d2e5cb72e88a943be01c59ec28b3 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 26 Feb 2018 09:14:09 +0100 Subject: [PATCH] force to save values as 'unknown' when 'apcaccess' returns error. #201 --- lib/apcupsd.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apcupsd.pm b/lib/apcupsd.pm index f2472a8..ee8b861 100644 --- a/lib/apcupsd.pm +++ b/lib/apcupsd.pm @@ -181,7 +181,7 @@ sub apcupsd_update { if(!$data) { logger("$myself: unable to execute '" . $apcupsd->{cmd} . "' command or invalid connection."); - $rrdata .= "::::::::::::::::::::::"; + $rrdata .= ":U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U"; next; }