diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-09 01:57:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-09 01:57:25 +0200 |
| commit | 615fec347cd575c0ee4343aa17ee99962f375f64 (patch) | |
| tree | a3603d9006ecd9ed9dadc33aa3e9eeb25dbb5113 /.github | |
| parent | 5c81b8e2ab3df0b8c56bf5ab5b30b15a816a1112 (diff) | |
| parent | c43f845c22a9e879546472aa9051d7ca0803ef2a (diff) | |
| download | monitoring-plugins-615fec347cd575c0ee4343aa17ee99962f375f64.tar.gz | |
Merge pull request #2144 from RincewindsHat/refactor/check_snmp
Refactor check snmp:
- Switch from executing `snmpget`/`snmpgetnext` to linking directly agains net-snmp
- Refactor to use test abstraction -> allows for JSON output
Diffstat (limited to '.github')
| -rw-r--r-- | .github/monitoring-plugins.spec | 3 | ||||
| -rwxr-xr-x | .github/prepare_debian.sh | 3 | ||||
| -rw-r--r-- | .github/workflows/codeql-analysis.yml | 17 |
3 files changed, 20 insertions, 3 deletions
diff --git a/.github/monitoring-plugins.spec b/.github/monitoring-plugins.spec index 10799128..ce22606b 100644 --- a/.github/monitoring-plugins.spec +++ b/.github/monitoring-plugins.spec | |||
| @@ -88,6 +88,9 @@ BuildRequires: postgresql-devel | |||
| 88 | # check_radius | 88 | # check_radius |
| 89 | BuildRequires: radcli-devel | 89 | BuildRequires: radcli-devel |
| 90 | 90 | ||
| 91 | # check_snmp | ||
| 92 | BuildRequires: net-snmp-devel | ||
| 93 | |||
| 91 | %description | 94 | %description |
| 92 | Common files for Monitoring Plugins | 95 | Common files for Monitoring Plugins |
| 93 | 96 | ||
diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index f7b6cf9f..cffe98c5 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh | |||
| @@ -24,6 +24,7 @@ apt-get -y install perl \ | |||
| 24 | libpq-dev \ | 24 | libpq-dev \ |
| 25 | libradcli-dev \ | 25 | libradcli-dev \ |
| 26 | libnet-snmp-perl \ | 26 | libnet-snmp-perl \ |
| 27 | libsnmp-dev \ | ||
| 27 | procps \ | 28 | procps \ |
| 28 | libdbi0-dev \ | 29 | libdbi0-dev \ |
| 29 | libdbd-sqlite3 \ | 30 | libdbd-sqlite3 \ |
| @@ -111,6 +112,8 @@ mkdir -p /var/lib/snmp/mib_indexes | |||
| 111 | sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf | 112 | sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf |
| 112 | service snmpd start | 113 | service snmpd start |
| 113 | 114 | ||
| 115 | sed 's/^mibs ://' -i /etc/snmp/snmp.conf | ||
| 116 | |||
| 114 | # start cron, will be used by check_nagios | 117 | # start cron, will be used by check_nagios |
| 115 | cron | 118 | cron |
| 116 | 119 | ||
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 57487eed..e01aa5fc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml | |||
| @@ -57,9 +57,20 @@ jobs: | |||
| 57 | run: | | 57 | run: | |
| 58 | sudo apt update | 58 | sudo apt update |
| 59 | sudo apt-get install -y --no-install-recommends m4 gettext automake autoconf make build-essential | 59 | sudo apt-get install -y --no-install-recommends m4 gettext automake autoconf make build-essential |
| 60 | sudo apt-get install -y --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev \ | 60 | sudo apt-get install -y --no-install-recommends perl \ |
| 61 | libmysqlclient-dev libradcli-dev libkrb5-dev libdbi0-dev \ | 61 | autotools-dev \ |
| 62 | libdbd-sqlite3 libssl-dev libcurl4-openssl-dev liburiparser-dev | 62 | libdbi-dev \ |
| 63 | libldap2-dev \ | ||
| 64 | libpq-dev \ | ||
| 65 | libmysqlclient-dev \ | ||
| 66 | libradcli-dev \ | ||
| 67 | libkrb5-dev \ | ||
| 68 | libdbi0-dev \ | ||
| 69 | libdbd-sqlite3 \ | ||
| 70 | libssl-dev \ | ||
| 71 | libcurl4-openssl-dev \ | ||
| 72 | liburiparser-dev \ | ||
| 73 | libsnmp-dev | ||
| 63 | 74 | ||
| 64 | - name: Configure build | 75 | - name: Configure build |
| 65 | run: | | 76 | run: | |
