From 26522e078fe4466c08075cac327760f7236a12fc Mon Sep 17 00:00:00 2001 From: St0bsel Date: Thu, 31 Oct 2024 08:23:28 +0100 Subject: [PATCH] Update mib2zabbix.pl fixed line 475 so it works with the current versions of the required libraries --- mib2zabbix.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mib2zabbix.pl b/mib2zabbix.pl index 46ac243..0ffa162 100755 --- a/mib2zabbix.pl +++ b/mib2zabbix.pl @@ -472,7 +472,7 @@ sub node_to_item { } # Set storage type to Delta for MIB counter types - if ( $node->{ type } ~~ ['COUNTER', 'COUNTER32', 'COUNTER64']) { + if ( $node->{ type } eq 'COUNTER' || $node->{ type } eq 'COUNTER32' || $node->{ type } eq 'COUNTER64' ) { $item->{ delta } = ZBX_ITEM_STORE_SPEED; if ($item->{ units } =~ /^s$/) {