diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..27a798a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' 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$/) {