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 /plugins/tests/test_check_snmp.t | |
| 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 'plugins/tests/test_check_snmp.t')
| -rwxr-xr-x | plugins/tests/test_check_snmp.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/tests/test_check_snmp.t b/plugins/tests/test_check_snmp.t new file mode 100755 index 00000000..967633e9 --- /dev/null +++ b/plugins/tests/test_check_snmp.t | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/usr/bin/perl | ||
| 2 | use Test::More; | ||
| 3 | if (! -e "./test_check_snmp") { | ||
| 4 | plan skip_all => "./test_check_snmp not compiled - please enable libtap library to test"; | ||
| 5 | } | ||
| 6 | exec "./test_check_snmp"; | ||
