From 26522e078fe4466c08075cac327760f7236a12fc Mon Sep 17 00:00:00 2001 From: St0bsel Date: Thu, 31 Oct 2024 08:23:28 +0100 Subject: [PATCH 1/2] 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$/) { From cb30bd68a6a9f75bc2fe2fe1444c32c7ada6dc5e Mon Sep 17 00:00:00 2001 From: St0bsel Date: Thu, 3 Apr 2025 09:59:42 +0200 Subject: [PATCH 2/2] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml 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'