On Jul 21, 2007, at 12:12 PM, Dave Shield wrote:

> On 21/07/07, Leland Wallace <[EMAIL PROTECTED]> wrote:
>> Turning on AgentX master support.
>> agentx/master: initializing...
>> Error: Couldn't open a master agentx socket to listen on ():
>>
>> and then it quits. Shouldn't the default port be used here?
>
> Not quite.
> By default, it should be listening on the default socket, as set by:
>
>   netsnmp_register_default_domain("agentx", "unix");
>   netsnmp_register_default_target("agentx", "unix",  
> NETSNMP_AGENTX_SOCKET);
>
> This evaluates to the named socket '/var/agentx/master',
> rather than the TCP port 705.

fair enough.

running with -DALL

I get:
agentx/master: initializing...
trace: netsnmp_tdomain_transport_full(): snmp_transport.c, 332:
tdomain: tdomain_transport_full("agentx", "", 1, "[NIL]", "[NIL]")
trace: netsnmp_lookup_default_domain(): snmp_service.c, 163:
defaults: netsnmp_lookup_default_domain("agentx") -> "unix"
trace: netsnmp_tdomain_transport_full(): snmp_transport.c, 385:
tdomain: Use application default domain "unix"
trace: netsnmp_tdomain_transport_full(): snmp_transport.c, 395:
tdomain: Found domain "unix" from specifier "unix"
trace: netsnmp_lookup_default_target(): snmp_service.c, 335:
defaults: netsnmp_lookup_default_target("agentx", "unix") -> "/var/ 
agentx/master"
trace: netsnmp_tdomain_transport_full(): snmp_transport.c, 419:
tdomain: domain "unix" address "" default address "/var/agentx/master"
trace: netsnmp_unix_transport(): snmpUnixDomain.c, 284:
netsnmp_unix: open local Local IPC: /var/agentx/master
trace: netsnmp_unix_transport(): snmpUnixDomain.c, 331:
netsnmp_unix_transport: couldn't bind "/var/agentx/master", errno 2  
(No such file or directory)
Error: Couldn't open a master agentx socket to listen on ():

so it looks like the path /var/agentx is missing.

Thanks
- Leland

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to