maddingue / anyevent-netsnmp-agent Goto Github PK
View Code? Open in Web Editor NEWAgentX clients with NetSNMP::agent and AnyEvent
AgentX clients with NetSNMP::agent and AnyEvent
The module correctly connects to the AgentX socket, but as soon as one tries to snmpget/walk the registered OIDs, it seems there's a communication problem between snmpd and the Perl agent, diagnosed by the message "AgentX master disconnected us, reconnecting in 15" on agent side, and the message "Timeout: No Response from localhost." on client side.
$ sudo /opt/snmp/5.7.2/sbin/snmpd -Le -f -d -V -C -c etc/snmpd.conf,etc/agentx.conf
Turning on AgentX master support.
NET-SNMP version 5.7.2
Received 80 byte packet from Local IPC: /opt/snmp/5.7.2/var/agentx/master
0000: 01 01 00 00 00 00 00 00 00 00 00 00 10 F5 87 15 ................
0016: 3C 00 00 00 00 00 00 00 05 04 00 00 01 00 00 00 <...............
0032: 88 1F 00 00 03 00 00 00 02 00 00 00 0A 00 00 00 ................
0048: 19 00 00 00 4E 65 74 2D 53 4E 4D 50 20 41 67 65 ....Net-SNMP Age
0064: 6E 74 58 20 73 75 62 2D 61 67 65 6E 74 00 00 00 ntX sub-agent...
Sending 88 bytes to Local IPC: /opt/snmp/5.7.2/var/agentx/master
0000: 01 12 00 00 05 00 00 00 00 00 00 00 10 F5 87 15 ................
0016: 44 00 00 00 D1 0E 00 00 00 00 00 00 04 00 00 00 D...............
0032: 05 04 00 00 01 00 00 00 88 1F 00 00 03 00 00 00 ................
0048: 02 00 00 00 0A 00 00 00 19 00 00 00 4E 65 74 2D ............Net-
0064: 53 4E 4D 50 20 41 67 65 6E 74 58 20 73 75 62 2D SNMP AgentX sub-
0080: 61 67 65 6E 74 00 00 00 agent...
Received 36 byte packet from Local IPC: /opt/snmp/5.7.2/var/agentx/master
0000: 01 03 00 00 05 00 00 00 00 00 00 00 11 F5 87 15 ................
0016: 10 00 00 00 00 7F 00 00 02 04 00 00 01 00 00 00 ................
0032: 10 7E 00 00 .~..
Sending 44 bytes to Local IPC: /opt/snmp/5.7.2/var/agentx/master
0000: 01 12 00 00 05 00 00 00 00 00 00 00 11 F5 87 15 ................
0016: 18 00 00 00 D2 0E 00 00 00 00 00 00 05 00 00 00 ................
0032: 02 04 00 00 01 00 00 00 10 7E 00 00 .........~..
Received 20 byte packet from Local IPC: /opt/snmp/5.7.2/var/agentx/master
0000: 01 0D 00 00 05 00 00 00 00 00 00 00 12 F5 87 15 ................
0016: 00 00 00 00 ....
Sending 28 bytes to Local IPC: /opt/snmp/5.7.2/var/agentx/master
0000: 01 12 00 00 05 00 00 00 00 00 00 00 12 F5 87 15 ................
0016: 08 00 00 00 A0 16 00 00 00 00 00 00 ............
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.