snmpwalk functions get_snmp not

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
madadmin
Posts: 8
Joined: Tue Dec 05, 2023 6:56 am

snmpwalk functions get_snmp not

Post 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!
madadmin
Posts: 8
Joined: Tue Dec 05, 2023 6:56 am

Re: snmpwalk functions get_snmp not

Post by madadmin »

-U was the error
gwesterman
Posts: 97
Joined: Wed Aug 23, 2023 11:29 am

Re: snmpwalk functions get_snmp not

Post by gwesterman »

I'm glad you found a solution so quickly!

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

Thank you!
Locked