Check_snmp v1 problem

Hi,
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.3.6.1.2.1.1.3.0

gives a result:
iso.3.6.1.2.1.1.3.0 = Timeticks: (349189590) 40 days, 9:58:15.90

if i do a

./check_snmp -H 172.30.4.2 -o iso.3.6.1.2.1.1.3.0 -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.3.6.1.2.1.1.3.0

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?
Thanks
Gav

Try to use -c public.

Thanks, but -c is for crit_range.

I found a solution in the buglist.
The snmp-mibs-downloader package have to be installed else the check_snmp will not generate a correct snmpget query.
Thanks

1 Like