diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-11 21:54:05 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-08-11 21:54:05 +0200 |
| commit | 7382fa90f84d38cd2ae08c880e9ed6a4ad644d35 (patch) | |
| tree | e367f424cfb94bd6730e196916a96a9725e61c27 /.github | |
| parent | fb39f96ac6f72bb56d17f3e8694134dfea9186e9 (diff) | |
| parent | 1dfb5a0c10881b43cb60cf93bab63648c61201b5 (diff) | |
| download | monitoring-plugins-7382fa90f84d38cd2ae08c880e9ed6a4ad644d35.tar.gz | |
Merge branch 'master' into refactor/check_users
Diffstat (limited to '.github')
| -rw-r--r-- | .github/monitoring-plugins.spec | 14 | ||||
| -rw-r--r-- | .github/os_detect.sh | 7 | ||||
| -rw-r--r-- | .github/workflows/codeql-analysis.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/spellcheck.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/test-next.yml | 16 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 15 |
6 files changed, 37 insertions, 17 deletions
diff --git a/.github/monitoring-plugins.spec b/.github/monitoring-plugins.spec index 64ee34f2..10799128 100644 --- a/.github/monitoring-plugins.spec +++ b/.github/monitoring-plugins.spec | |||
| @@ -191,7 +191,6 @@ Requires: %{name}-nt | |||
| 191 | Requires: %{name}-ntp | 191 | Requires: %{name}-ntp |
| 192 | Requires: %{name}-ntp_peer | 192 | Requires: %{name}-ntp_peer |
| 193 | Requires: %{name}-ntp_time | 193 | Requires: %{name}-ntp_time |
| 194 | Requires: %{name}-nwstat | ||
| 195 | Requires: %{name}-oracle | 194 | Requires: %{name}-oracle |
| 196 | Requires: %{name}-pgsql | 195 | Requires: %{name}-pgsql |
| 197 | Requires: %{name}-ping | 196 | Requires: %{name}-ping |
| @@ -702,19 +701,6 @@ Provides check_ntp_time of the Monitoring Plugins. | |||
| 702 | 701 | ||
| 703 | 702 | ||
| 704 | 703 | ||
| 705 | # check_nwstat | ||
| 706 | %package nwstat | ||
| 707 | Summary: Monitoring Plugins - check_nwstat | ||
| 708 | Requires: %{name} = %{version}-%{release} | ||
| 709 | |||
| 710 | %description nwstat | ||
| 711 | Provides check_nwstat of the Monitoring Plugins. | ||
| 712 | |||
| 713 | %files nwstat | ||
| 714 | %{plugindir}/check_nwstat | ||
| 715 | |||
| 716 | |||
| 717 | |||
| 718 | # check_oracle | 704 | # check_oracle |
| 719 | %package oracle | 705 | %package oracle |
| 720 | Summary: Monitoring Plugins - check_oracle | 706 | Summary: Monitoring Plugins - check_oracle |
diff --git a/.github/os_detect.sh b/.github/os_detect.sh index ee9c145d..47c762d3 100644 --- a/.github/os_detect.sh +++ b/.github/os_detect.sh | |||
| @@ -1,10 +1,17 @@ | |||
| 1 | #!/bin/sh -e | 1 | #!/bin/sh -e |
| 2 | |||
| 3 | . /etc/os-release | ||
| 4 | |||
| 2 | # workaround for really bare-bones Archlinux containers: | 5 | # workaround for really bare-bones Archlinux containers: |
| 3 | if [ -x "$(command -v pacman)" ]; then | 6 | if [ -x "$(command -v pacman)" ]; then |
| 4 | pacman --noconfirm -Sy | 7 | pacman --noconfirm -Sy |
| 5 | pacman --noconfirm -S grep gawk sed | 8 | pacman --noconfirm -S grep gawk sed |
| 6 | fi | 9 | fi |
| 7 | 10 | ||
| 11 | if [ ${ID} == "fedora" -a ${VERSION_ID} -gt 41 ]; then | ||
| 12 | dnf install -y gawk | ||
| 13 | fi | ||
| 14 | |||
| 8 | os_release_file= | 15 | os_release_file= |
| 9 | if [ -s "/etc/os-release" ]; then | 16 | if [ -s "/etc/os-release" ]; then |
| 10 | os_release_file="/etc/os-release" | 17 | os_release_file="/etc/os-release" |
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 @@ | |||
| 13 | name: "CodeQL" | 13 | name: "CodeQL" |
| 14 | 14 | ||
| 15 | on: | 15 | on: |
| 16 | workflow_dispatch: {} | ||
| 16 | push: | 17 | push: |
| 17 | branches: [master] | 18 | branches: [master] |
| 18 | pull_request: | 19 | 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 @@ | |||
| 2 | name: Spellcheck | 2 | name: Spellcheck |
| 3 | 3 | ||
| 4 | on: | 4 | on: |
| 5 | workflow_dispatch: {} | ||
| 5 | # Run for pushes on any branch | 6 | # Run for pushes on any branch |
| 6 | push: | 7 | push: |
| 7 | branches: | 8 | branches: |
diff --git a/.github/workflows/test-next.yml b/.github/workflows/test-next.yml index 81240759..7ca255c9 100644 --- a/.github/workflows/test-next.yml +++ b/.github/workflows/test-next.yml | |||
| @@ -2,7 +2,13 @@ | |||
| 2 | name: Tests Debian:Testing and Fedora:Rawhide | 2 | name: Tests Debian:Testing and Fedora:Rawhide |
| 3 | 3 | ||
| 4 | on: | 4 | on: |
| 5 | workflow_dispatch: {} | 5 | workflow_dispatch: |
| 6 | inputs: | ||
| 7 | debug_enabled: | ||
| 8 | type: boolean | ||
| 9 | description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
| 10 | required: false | ||
| 11 | default: false | ||
| 6 | push: | 12 | push: |
| 7 | branches-ignore: | 13 | branches-ignore: |
| 8 | - '*' | 14 | - '*' |
| @@ -25,6 +31,9 @@ jobs: | |||
| 25 | steps: | 31 | steps: |
| 26 | - name: Git clone repository | 32 | - name: Git clone repository |
| 27 | uses: actions/checkout@v4 | 33 | uses: actions/checkout@v4 |
| 34 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 35 | uses: mxschmitt/action-tmate@v3 | ||
| 36 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 28 | - name: Run the tests on ${{ matrix.distro }} | 37 | - name: Run the tests on ${{ matrix.distro }} |
| 29 | run: | | 38 | run: | |
| 30 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 39 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol |
| @@ -38,7 +47,7 @@ jobs: | |||
| 38 | ${{ matrix.distro }} \ | 47 | ${{ matrix.distro }} \ |
| 39 | /bin/sh -c '${{ matrix.prepare }} && \ | 48 | /bin/sh -c '${{ matrix.prepare }} && \ |
| 40 | tools/setup && \ | 49 | tools/setup && \ |
| 41 | ./configure --enable-libtap --with-ipv6=no && \ | 50 | ./configure --enable-libtap && \ |
| 42 | make && \ | 51 | make && \ |
| 43 | make test && \ | 52 | make test && \ |
| 44 | make dist && \ | 53 | make dist && \ |
| @@ -60,6 +69,9 @@ jobs: | |||
| 60 | steps: | 69 | steps: |
| 61 | - name: Git clone repository | 70 | - name: Git clone repository |
| 62 | uses: actions/checkout@v4 | 71 | uses: actions/checkout@v4 |
| 72 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 73 | uses: mxschmitt/action-tmate@v3 | ||
| 74 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 63 | - name: Run the tests on ${{ matrix.distro }} | 75 | - name: Run the tests on ${{ matrix.distro }} |
| 64 | run: | | 76 | run: | |
| 65 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 77 | 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 77ca6585..f9919b2d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
| @@ -2,6 +2,13 @@ | |||
| 2 | name: Tests | 2 | name: Tests |
| 3 | 3 | ||
| 4 | on: | 4 | on: |
| 5 | workflow_dispatch: | ||
| 6 | inputs: | ||
| 7 | debug_enabled: | ||
| 8 | type: boolean | ||
| 9 | description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
| 10 | required: false | ||
| 11 | default: false | ||
| 5 | push: | 12 | push: |
| 6 | branches: | 13 | branches: |
| 7 | - '*' | 14 | - '*' |
| @@ -22,6 +29,9 @@ jobs: | |||
| 22 | steps: | 29 | steps: |
| 23 | - name: Git clone repository | 30 | - name: Git clone repository |
| 24 | uses: actions/checkout@v4 | 31 | uses: actions/checkout@v4 |
| 32 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 33 | uses: mxschmitt/action-tmate@v3 | ||
| 34 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 25 | - name: Run the tests on ${{ matrix.distro }} | 35 | - name: Run the tests on ${{ matrix.distro }} |
| 26 | run: | | 36 | run: | |
| 27 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 37 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol |
| @@ -35,7 +45,7 @@ jobs: | |||
| 35 | ${{ matrix.distro }} \ | 45 | ${{ matrix.distro }} \ |
| 36 | /bin/sh -c '${{ matrix.prepare }} && \ | 46 | /bin/sh -c '${{ matrix.prepare }} && \ |
| 37 | tools/setup && \ | 47 | tools/setup && \ |
| 38 | ./configure --enable-libtap --with-ipv6=no && \ | 48 | ./configure --enable-libtap && \ |
| 39 | make && \ | 49 | make && \ |
| 40 | make test && \ | 50 | make test && \ |
| 41 | make dist && \ | 51 | make dist && \ |
| @@ -60,6 +70,9 @@ jobs: | |||
| 60 | steps: | 70 | steps: |
| 61 | - name: Git clone repository | 71 | - name: Git clone repository |
| 62 | uses: actions/checkout@v4 | 72 | uses: actions/checkout@v4 |
| 73 | - name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | ||
| 74 | uses: mxschmitt/action-tmate@v3 | ||
| 75 | if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | ||
| 63 | - name: Run the tests on ${{ matrix.distro }} | 76 | - name: Run the tests on ${{ matrix.distro }} |
| 64 | run: | | 77 | run: | |
| 65 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol | 78 | docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol |
