Can't connect to master agent

This is a discussion on Can't connect to master agent within the SNMP Users forums, part of the Networking and Network Related category; I've been following the tutorial on how to create a sub-agent demon. http://www.net-snmp.org/tutorial/...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-21-2006
Kelby Rogers
 
Posts: n/a
Default Can't connect to master agent

I've been following the tutorial on how to create a sub-agent demon.

http://www.net-snmp.org/tutorial/tut...mon/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=...057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0