Hi,

I have a problem with agentx on MinGW.(Windows 2000)
I'm using the net-snmp versions 5.1.2 and 5.2 with same result.

I had create the subagent with "net-snmp-config" script :
 net-snmp-config --compile-subagent mysubagent mymodule.c


and I had start the deamon "snmpd" like master agent ( in configuration file snmpd.conf listed below ) and it worked well.



######################################################################### # # snmpd.conf # - created by the snmpconf configuration program # #


########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent.

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  public


########################################################################### # SECTION: Agent Operating Mode # # This section defines how the agent will operate when it # is running.

# master: Should the agent operate as a master agent or not.
#   Currently, the only supported master agent type for this token
#   is "agentx".
#
#   arguments: (on|yes|agentx|all|off|no)

master  agentx
agentxAddress localhost:705
agentxSocket localhost:705

# agentuser: The system user that the agent runs as.
#   arguments: name|#uid

agentuser  Administ

# agentgroup: The system group that the agent runs as.
#   arguments: group|#GID

agentgroup  Administ

# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ':'s).
# arguments: [transport:[EMAIL PROTECTED]/address],...


agentaddress  161

#
#
#---------------------------------------------------------------


Then I had start the deamon AgentX "mysubagent" with the configuration file mysubagent.conf listed below:


mysubagent.exe


#--------------------------------------------------------------- # # mysubagent.conf # #



###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public
rwcommunity  public



###########################################################################
# SECTION: Agent Operating Mode
#
#   This section defines how the agent will operate when it
#   is running.

# master: Should the agent operate as a master agent or not.
#   Currently, the only supported master agent type for this token
#   is "agentx".
#
#   arguments: (on|yes|agentx|all|off|no)

agentxsocket localhost:705

# agentuser: The system user that the agent runs as.
#   arguments: name|#uid

agentuser  Administ

# agentgroup: The system group that the agent runs as.
#   arguments: group|#GID

agentgroup  Administ

# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ':'s).
# arguments: [transport:[EMAIL PROTECTED]/address],...


agentaddress  161

#
#
#########################################################################


but it don't work, and the output is :

Error: Failed to connect to the agentx master agent: Unknown host
select: No such file or directory
select: No such file or directory
select: No such file or directory
select: No such file or directory
select: No such file or directory
se ....................
......................


Thanks, Maurizio.




------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to