Kelby Rogers wrote:
> 
> Dave Shield wrote:
> 
>>On 21/08/06, Kelby Rogers <[EMAIL PROTECTED]> wrote:
>>  
>>
>>>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)"
>>>
>>>The /var/agentx/master file exists, but it is 0 bytes.
>>>    
>>>
>>
>>A zero-length file is to be expected - it's a socket, not a regular file.
>>What is the ownership (and permissions) on this file?
>>  
>>
> The owner and group are both 'root'. The permissions are -rwxr-xr-x

This should be srwxr-xr-x

Who cretaed this file? It should be created implicitly by the master 
agent if it sees the "agentx master" directive (or the appropriate 
command-line switch).

>>What user are you running the example-demon as?
>>  
>>
> I'm running the example-demon as 'root'. (via the sudo command)
> 
>>What happens when you close down the master agent - does the
>>/var/agentx/master socket disappear?
>>  
>>
> No, /var/agentx/master socket is still there when I close the master agent.

Dunno if it must be removed explicitly, but I'm currently investigating 
a crashing master and, while no snmpd is running after a crash, the 
socket is still there.

-- 
Josef Möllers (Pinguinpfleger bei FSC)
        If failure had no penalty success would not be a prize
                                                -- T.  Pratchett

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to