From d2bea1d288328d2d387d587b38a0efeba1becc97 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Wed, 23 Jul 2025 15:22:45 +0200 Subject: CI: Adding workflow_dispatch --- .github/workflows/codeql-analysis.yml | 1 + .github/workflows/spellcheck.yml | 1 + .github/workflows/test.yml | 1 + 3 files changed, 3 insertions(+) (limited to '.github') diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c402e0cf..e748d2eb 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,7 @@ name: "CodeQL" on: + workflow_dispatch: {} push: branches: [master] pull_request: diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 72f7c7eb..c8714e64 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -2,6 +2,7 @@ name: Spellcheck on: + workflow_dispatch: {} # Run for pushes on any branch push: branches: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce0ec547..146d91b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,7 @@ name: Tests on: + workflow_dispatch: {} push: branches: - '*' -- cgit v1.2.3-74-g34f1 From 61a68da144b726668196ba5cb01fcce9e99f0fdb Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Thu, 24 Jul 2025 10:28:03 +0200 Subject: Adding tmate optional to manual dispatch --- .github/workflows/test-next.yml | 14 +++++++++++++- .github/workflows/test.yml | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/test-next.yml b/.github/workflows/test-next.yml index fd59e85d..7ca255c9 100644 --- a/.github/workflows/test-next.yml +++ b/.github/workflows/test-next.yml @@ -2,7 +2,13 @@ name: Tests Debian:Testing and Fedora:Rawhide on: - workflow_dispatch: {} + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false push: branches-ignore: - '*' @@ -25,6 +31,9 @@ jobs: steps: - name: Git clone repository uses: actions/checkout@v4 + - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Run the tests on ${{ matrix.distro }} run: | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol @@ -60,6 +69,9 @@ jobs: steps: - name: Git clone repository uses: actions/checkout@v4 + - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Run the tests on ${{ matrix.distro }} run: | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 146d91b6..f9919b2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,13 @@ name: Tests on: - workflow_dispatch: {} + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false push: branches: - '*' @@ -23,6 +29,9 @@ jobs: steps: - name: Git clone repository uses: actions/checkout@v4 + - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Run the tests on ${{ matrix.distro }} run: | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol @@ -61,6 +70,9 @@ jobs: steps: - name: Git clone repository uses: actions/checkout@v4 + - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Run the tests on ${{ matrix.distro }} run: | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol -- cgit v1.2.3-74-g34f1 From 278954117cabd8e76941d4191a2692bfdeb39372 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 1 Aug 2025 21:33:39 +0200 Subject: (Re)construct PLATFORM_ID as it's droped since Fedora 43 See https://fedoraproject.org/wiki/Changes/Drop_PLATFORM_ID?#Drop_PLATFORM_ID --- .github/os_detect.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to '.github') diff --git a/.github/os_detect.sh b/.github/os_detect.sh index 47c762d3..3c5956de 100644 --- a/.github/os_detect.sh +++ b/.github/os_detect.sh @@ -22,4 +22,7 @@ else return 1 fi export distro_id=$(grep '^ID=' $os_release_file|awk -F = '{print $2}'|sed 's/\"//g') +export version_id=$(grep '^VERSION_ID=' $os_release_file|awk -F = '{print $2}'|sed 's/\"//g') export platform_id=$(grep '^PLATFORM_ID=' /etc/os-release|awk -F = '{print $2}'|sed 's/\"//g'| cut -d":" -f2) +# Fedora dropped PLATFORM_ID: https://fedoraproject.org/wiki/Changes/Drop_PLATFORM_ID?#Drop_PLATFORM_ID +if [ -z $platform_id ]; then export platform_id=$(echo ${distro_id:0:1}${version_id}); fi -- cgit v1.2.3-74-g34f1 From fc0f176f0deb4f473553ae71eac8ee33654d62e7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 11:29:24 +0000 Subject: build(deps): bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/spellcheck.yml | 2 +- .github/workflows/test-next.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to '.github') diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e748d2eb..57487eed 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -41,7 +41,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index c8714e64..14b82781 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Codespell uses: codespell-project/actions-codespell@v2 with: diff --git a/.github/workflows/test-next.yml b/.github/workflows/test-next.yml index 7ca255c9..0e69c251 100644 --- a/.github/workflows/test-next.yml +++ b/.github/workflows/test-next.yml @@ -30,7 +30,7 @@ jobs: prepare: .github/prepare_debian.sh steps: - name: Git clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} @@ -68,7 +68,7 @@ jobs: - {"distro": "fedora:rawhide", "build": ".github/mock.sh"} steps: - name: Git clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9919b2d..1ac8aaf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: prepare: .github/prepare_debian.sh steps: - name: Git clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} @@ -69,7 +69,7 @@ jobs: # - {"distro": "oraclelinux:9", "build": ".github/mock.sh"} steps: - name: Git clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} -- cgit v1.2.3-74-g34f1 From 7ff0e518e4f77a8aae385511a7d46ff32e06bb9c Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 27 Aug 2025 19:14:51 +0200 Subject: Add libsnmp-dev to github action dependencies --- .github/prepare_debian.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index f7b6cf9f..b5cacd4a 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh @@ -24,6 +24,7 @@ apt-get -y install perl \ libpq-dev \ libradcli-dev \ libnet-snmp-perl \ + libsnmp-dev \ procps \ libdbi0-dev \ libdbd-sqlite3 \ -- cgit v1.2.3-74-g34f1 From 776c51a66f6eb9c3d6f018cb3786c6441f6b7171 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 27 Aug 2025 19:18:15 +0200 Subject: Add netsnmp lib to specfile --- .github/monitoring-plugins.spec | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/monitoring-plugins.spec b/.github/monitoring-plugins.spec index 10799128..e3352988 100644 --- a/.github/monitoring-plugins.spec +++ b/.github/monitoring-plugins.spec @@ -824,6 +824,7 @@ Provides check_smtp of the Monitoring Plugins. Summary: Monitoring Plugins - check_snmp Requires: %{name} = %{version}-%{release} Requires: net-snmp +Build-Requires: net-snmp-devel %description snmp Provides check_snmp of the Monitoring Plugins. -- cgit v1.2.3-74-g34f1 From 334c7e3e13342995bacaf670f49b1333654520bd Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 27 Aug 2025 19:27:07 +0200 Subject: Add libsnmp-dev dependency to codeql gh action --- .github/workflows/codeql-analysis.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e748d2eb..6227f98f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,9 +57,20 @@ jobs: run: | sudo apt update sudo apt-get install -y --no-install-recommends m4 gettext automake autoconf make build-essential - sudo apt-get install -y --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev \ - libmysqlclient-dev libradcli-dev libkrb5-dev libdbi0-dev \ - libdbd-sqlite3 libssl-dev libcurl4-openssl-dev liburiparser-dev + sudo apt-get install -y --no-install-recommends perl \ + autotools-dev \ + libdbi-dev \ + libldap2-dev \ + libpq-dev \ + libmysqlclient-dev \ + libradcli-dev \ + libkrb5-dev \ + libdbi0-dev \ + libdbd-sqlite3 \ + libssl-dev \ + libcurl4-openssl-dev \ + liburiparser-dev \ + libsnmp-dev - name: Configure build run: | -- cgit v1.2.3-74-g34f1 From d3e1c0314d94e9f97c822fc80659c7234308045f Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 27 Aug 2025 19:29:56 +0200 Subject: Fix Specfile requires --- .github/monitoring-plugins.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/monitoring-plugins.spec b/.github/monitoring-plugins.spec index e3352988..ce22606b 100644 --- a/.github/monitoring-plugins.spec +++ b/.github/monitoring-plugins.spec @@ -88,6 +88,9 @@ BuildRequires: postgresql-devel # check_radius BuildRequires: radcli-devel +# check_snmp +BuildRequires: net-snmp-devel + %description Common files for Monitoring Plugins @@ -824,7 +827,6 @@ Provides check_smtp of the Monitoring Plugins. Summary: Monitoring Plugins - check_snmp Requires: %{name} = %{version}-%{release} Requires: net-snmp -Build-Requires: net-snmp-devel %description snmp Provides check_snmp of the Monitoring Plugins. -- cgit v1.2.3-74-g34f1 From 76e1a1fa8cbb11bc67fae55a0ae2b596faa66444 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Tue, 9 Sep 2025 01:18:21 +0200 Subject: Activate mib parsing in Debian CI pipeline --- .github/prepare_debian.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github') diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index b5cacd4a..cffe98c5 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh @@ -112,6 +112,8 @@ mkdir -p /var/lib/snmp/mib_indexes sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf service snmpd start +sed 's/^mibs ://' -i /etc/snmp/snmp.conf + # start cron, will be used by check_nagios cron -- cgit v1.2.3-74-g34f1