monitoring-plugins
monitoring-plugins copied to clipboard
snmp: snmpget not found
This issue respects the following points:
- [X] This is a bug, not a question or a setup/configuration issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] I use the latest release of the Monitoring Plugins (https://github.com/Linuxfabrik/monitoring-plugins/releases).
- [X] I agree to follow Monitoring Plugins's Code of Conduct.
Which variant of the Monitoring Plugins do you use?
- [ ] .rpm/.deb package from repo.linuxfabrik.ch
- [X] Compiled for Linux (.tar/.zip from download.linuxfabrik.ch)
- [ ] Compiled for Windows (from download.linuxfabrik.ch)
- [ ] Source Code from GitHub
Bug description
Any execution of the snmp
plugin returns the following error:
root@cop:/opt/icinga2-plugins/linuxfabrik# ./snmp -H my.snmp.host
snmpget not found
snmpget
is installed:
root@cop:/opt/icinga2-plugins/linuxfabrik# dpkg -l|grep snmp
ii libnet-snmp-perl 6.0.1-6 all Script SNMP connections
ii libsnmp-base 5.9+dfsg-4+deb11u1 all SNMP configuration script, MIBs and documentation
ii libsnmp40:amd64 5.9+dfsg-4+deb11u1 amd64 SNMP (Simple Network Management Protocol) library
ii snmp 5.9+dfsg-4+deb11u1 amd64 SNMP (Simple Network Management Protocol) applications
ii snmpd 5.9+dfsg-4+deb11u1 amd64 SNMP (Simple Network Management Protocol) agents
root@cop:/opt/icinga2-plugins/linuxfabrik# which snmpget
/usr/bin/snmpget
And executable:
root@cop:/opt/icinga2-plugins/linuxfabrik# snmpget --version
NET-SNMP version: 5.9
Steps to reproduce - Plugin call
./snmp -H my.snmp.host
Steps to reproduce - Data
No response
Environment
Debian Bullseye
root@cop:/opt/icinga2-plugins/linuxfabrik# uname -r
5.10.0-25-amd64
Plugin Version
snmp: v2023051201 by Linuxfabrik GmbH, Zurich/Switzerland
Python version
No response
List of Python modules
No response
Additional Information
No response
Hi I think this might be a duplicate of https://github.com/Linuxfabrik/monitoring-plugins/discussions/704, can you test with the latest version of the snmp check?
(and therefore fixed by https://github.com/Linuxfabrik/monitoring-plugins/commit/929d73f6bd2d278c927c04dd474e097ad5ac1497)
@mmartinello does the new version work?