Update mib2zabbix.pl

fixed line 475 so it works with the current versions of the required libraries
This commit is contained in:
St0bsel 2024-10-31 08:23:28 +01:00 committed by GitHub
parent b4e866ef66
commit 26522e078f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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$/) {