OoO Pendant  le temps de midi  du dimanche 04 janvier  2009, vers 12:23,
"Nikos Balkanas" <[email protected]> disait :

> I tried these suggestions. localhost works fine. Couldn't get, though,
> unix sockets to work.
> It creates the unix socket OK, but the example-daemon fails to connect:

> Warning: Failed to connect to the agentx master agent ([NIL]):

> snmpd.conf:

> master agentx
> agentXSocket unix:/tmp/master

> ls -la /tmp/master:

> srwxr-xr-x   1 root     root           0 Jan  4 13:17 /tmp/master

> I imagine that example daemon needs to be told of the Unix socket. Any
> ideas?

Since   you  are   on  Unix,   unix   socket  should   be  the   default
(/var/agentx/master).  With just "master  agentx" in  your configuration
file, don't you  get a socket at /var/agentx/master? If  not, do you run
snmpd with "-x" option?

The example daemon can be told using "-x /tmp/master" (it takes the same
parameters than snmpd if I remember correctly).

Otherwise, adding
 netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, 
"/tmp/master");
should work too.
-- 
I WILL NOT CREATE ART FROM DUNG
I WILL NOT CREATE ART FROM DUNG
I WILL NOT CREATE ART FROM DUNG
-+- Bart Simpson on chalkboard in episode BABF04

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to