Page 1 of 1

snmpwalk functions get_snmp not

Posted: Fri Jan 19, 2024 3:57 am
by madadmin
Hello!
I have a question about check_snmp:
I have an UPS from which i want to get the Temperatures from, but i just get the message: Required parameter: secname.
I can get the data with snmpwalk, but i cant use it for alerts.
The commands are:

Code: Select all

 /usr/lib/nagios/plugins/check_snmp 192.168.151.195 -u nagios -L 'noAuthNoPriv' -o UPS-MIB::upsBatteryTemperature.0 -w 50 -c 70 -P 3
 /usr/lib/nagios/plugins/check_snmp 192.168.151.195 -u nagios -L 'noAuthNoPriv' -o 1.3.6.1.2.1.33.1.2.7 -w 50 -c 70 -P 3
 /usr/bin/snmpwalk -v3 192.168.151.195 -u nagios UPS-MIB::upsBatteryTemperature.0
I get the same errors, when i change the security to AuthPriv/NoAuthPriv - i cant see where the issue could be.
I found the command in the web which worked for them.
The device is a SNMP Module from generex and i aleready asked them, but they told me its not an issue on their side.
Thank you!

Re: snmpwalk functions get_snmp not

Posted: Fri Jan 19, 2024 4:22 am
by madadmin
-U was the error

Re: snmpwalk functions get_snmp not

Posted: Fri Jan 19, 2024 12:15 pm
by gwesterman
I'm glad you found a solution so quickly!

Please let us know if you run into any other issues.

Thank you!