I've been following the tutorial on how to create a sub-agent demon. http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demon/index.html
For my testing I'm using net-snmp 5.3.0.1 running on my local desktop machine, Kubuntu Linux 6.06. I intend to develop an snmp agent on an embedded target, but to keep it simple I'm testing things on my desktop first. When I run the example-demon from the tutorial I get the following message "Warning: Failed to connect to the agentx master agent (/var/agentx/master): Unknown host (/var/agentx/master) (Connection refused)" I get exactly the same message when the master agent isn't running. The /var/agentx/master file exists, but it is 0 bytes. My snmp master agent is running, and I have added "master agent" to the snmpd.conf file. Both the master agent and example-demon are running as root. When I run my master agent with the -Dagentx arguement I get the following output registered debug token agentx, 1 agentx_register_app_config_handler: registering .conf token for "agentxsocket" agentx_register_app_config_handler: registering .conf token for "agentxperms" agentx_register_app_config_handler: registering .conf token for "agentxRetries" agentx_register_app_config_handler: registering .conf token for "agentxTimeout" NET-SNMP version 5.3.0.1 I have also run Ethereal on the local loopback interface. I see 2 snmptraps sent when the master agent is started, but nothing else. Kelby ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ======================================================================= ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
