i just tried to query an old temperatursensor with snmp. So started with a simple query for the system uptime and it didn’t work. so i switched to the maschine who do the actual query and get the following:
snmpget -v1 -c public 172.30.4.2 iso.18.104.22.168.22.214.171.124
gives a result:
iso.126.96.36.199.188.8.131.52 = Timeticks: (349189590) 40 days, 9:58:15.90
if i do a
./check_snmp -H 172.30.4.2 -o iso.184.108.40.206.220.127.116.11 -P 1 -C public -v
the program generates this query
/usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 1 [context] [authpriv] 172.30.4.2:161 iso.18.104.22.168.22.214.171.124
which doesn’t work because of the [context] [authpriv]. If i remove these two entries and add the community string, the query works, but give me in addition all of the mibstuff instead of a simple answer.
Does anyone knows how to get the check_snmp plugin to do what i want?