Update mib2zabbix.pl
fixed line 475 so it works with the current versions of the required libraries
This commit is contained in:
parent
b4e866ef66
commit
26522e078f
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ sub node_to_item {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set storage type to Delta for MIB counter types
|
# 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;
|
$item->{ delta } = ZBX_ITEM_STORE_SPEED;
|
||||||
|
|
||||||
if ($item->{ units } =~ /^s$/) {
|
if ($item->{ units } =~ /^s$/) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue