From 81617163600f716d9b163fd3d094b0bda5cfabb4 Mon Sep 17 00:00:00 2001
From: Sergey Ivanov <seriv@cs.umd.edu>
Date: Tue, 6 Nov 2018 16:58:29 -0500
Subject: [PATCH] fix: instead of number of errors it summarized IDs of devices

---
 lib/Site/Cacti.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Site/Cacti.pm b/lib/Site/Cacti.pm
index b5323eb..1d1854a 100644
--- a/lib/Site/Cacti.pm
+++ b/lib/Site/Cacti.pm
@@ -64,7 +64,7 @@ sub handler {
 =cut
       if(/SPINE:\s+Poller\[\d+\]\s+WARNING:.*Errors\[(\d+)\]\s+Device\[(\d+)\].*\s+DS\[([ 0-9,]+)\]/) {
         print STDERR "errors: num=$1, Device\[$2], DSes=$3\n" if $DEBUG;
-        $errors += $2;
+        $errors += $1;
       }
 =pod example of DSes  reported:
 2018/11/05 15:00:05 - SPINE: Poller[1] Device[32] TH[1] NOTE: There are '398' Polling Items for this Device
-- 
GitLab