python-netsnmpagent icon indicating copy to clipboard operation
python-netsnmpagent copied to clipboard

Can't reach subagent from system-wide level

Open Artyrm opened this issue 4 years ago • 3 comments

Hello.

First of all, thank you for that library, since it appears to be the most alive Pyhon-SNMP implementation.

I tried to run simple agent example, from the master branch, that was successful. After that I tried to do as comments say at the beginning of simple_agent.py.

However this time I had response:

snmpwalk -v 2c -c secret -M+. localhost SIMPLE-MIB::simpleMIB
SIMPLE-MIB::simpleMIB = No Such Object available on this agent at this OID

Also, I noted that nowadays <rosecret> is called simply secret inside the /etc/snmp/snmpd.conf.

And in comments:

Then, from a separate console and from inside the python-netsnmpagent
directory, you can run

I believe you meant from /examples directory, since SIMPLE_MIB.txt is available only there?

Artyrm avatar Nov 08 '20 18:11 Artyrm

I ran snmpd -f -L -Dagentx

And there is no reaction once I sun simple_agent.

Artyrm avatar Nov 08 '20 19:11 Artyrm

Ugh. Somehow it appears that I was editing run_thresding, while running run_simple. Now it's cleared up.

But I get this on simple_agent start: Error opening specified endpoint "" Server Exiting with code 1

Do I understand right that I need to leave only

rocommunity secret 127.0.0.1
master agentx

in the [snmpd] section of .sh file?

Artyrm avatar Nov 08 '20 20:11 Artyrm

same issue here :(

Koxx3 avatar Aug 06 '21 16:08 Koxx3