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/prepare_debian.sh | |
| 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/prepare_debian.sh')
| -rwxr-xr-x | .github/prepare_debian.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 | ||
