I have c++ application running on Ubuntu. I need to add support to monitoring few application scalar values by snmp. I tried to follow the snmp-net set tutorials , but it didnt work for me.
At the end of the tutorial i run this:
/usr/local/sbin/snmpd -f -L -d -p 9999
In another terminal run this:
snmpget -v2c -c tutget localhost:9999 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
but i get: Timeout: No Response from localhost:9999.
however run this:
snmptranslate -Td -M+. -mNET-SNMP-TUTORIAL-MIB -IR nstAgentModuleObject
return the MIB DESC.
in addtional try to run with MIB location like this, return the same.
snmpget -v2c -c tutget -M+ -mNET-SNMP-TUTORIAL-MIB localhost:9999 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0
Thank you!!!!!