diff --git a/lib/Site/Cacti.pm b/lib/Site/Cacti.pm index b5323eb554dd586c9df8d140704c3337c499919c..1d1854afa103d3e4b3d8c4d09824dd47839afc08 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