[389-users] SNMP trouble

Mitja Mihelič mitja.mihelic at arnes.si
Fri Dec 11 13:35:15 UTC 2009



On 12/07/2009 06:48 PM, Nathan Kinder wrote:
> On 12/07/2009 03:41 AM, Mitja Mihelic( wrote:
>> Has anyone managed to get SNMP working ?
> Yes, it does work.  The problem areas for most during setup seem to be 
> communication between the master agent and the subagent (the subagent 
> logs should indicate if this is a problem when you start it), and 
> access control configuration of the master agent.  Perhaps your 
> community does not have rights to see everything?
Here is my /etc/snmp/snmpd.conf (I did change the sensitive data to 
something arbitrary):
master agentx
mibdirs +/usr/share/dirsrv/mibs
syscontact software at ourdomain.com
syslocation LOCATION
rocommunity 34k5j6g7 127.0.0.1
authtrapenable 1
trapcommunity public
trapsink 127.0.0.1

Did you have something like this in mind for the communication problem ?
2009-11-30 15:21:36 Warning: Failed to connect to the agentx master 
agent (/var/agentx/master): Unknown host (/var/agentx/master) 
(Permission denied)

That did happen at the start.

After we resolved that issue, this is what the logs show
2009-12-04 13:47:21 Reloading stats.
2009-12-04 13:47:21 Opening stats file 
(/var/run/dirsrv/slapd-server-users.stats) for server: 389

>> Mitja Mihelic wrote:
>>> Nathan Kinder wrote:
>>>
>>>> On 12/01/2009 07:21 AM, Mitja Mihelic( wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> I have set up SNMP on our server.
>>>>>
>>>>>
>>>> What platform are you on and what version of 389 are you using?
>>>>
>>> It's not the 389 server exactly. It's centos-ds-8.1.0-1.el5.centos.2 
>>> run
>>> on the current CentOS 5.4
>>>
>>>
>>>> What does your configuration file look like for the ldap-agent
>>>> subagent?  Did you configure it to communicate with snmpd via agentx?
>>>> Do the ldap-agent logs show anything?
>>>>
>>> The first two lines in /etc/snmp/snmpd.conf
>>>    master agentx
>>>    mibdirs +/usr/share/dirsrv/mibs
>>>
>>> Contents of the etc/dirsrv/snmp-agent/ldap-agent.conf
>>>    agentx-master /var/agentx/master
>>>    agent-logdir /var/log/dirsrv/snmp-agent/
>>>    server slapd-SERVER-users
>>>
>>> The ldap-agent logs shows the following, repeated every 15s or so:
>>>    2009-12-02 10:10:09 Reloading stats.
>>>    2009-12-02 10:10:09 Opening stats file
>>> (/var/run/dirsrv/slapd-SERVER-users.stats) for server: 389
>>>
>>> The ldap-agent was run like so (in debug mode just in case):
>>>    ldap-agent -D /etc/dirsrv/snmp-agent/ldap-agent.conf
>>>
>>>
>>>>> While it responds to my queries it reports only data from the OID
>>>>> .1.3.6.1.4.1.2312.6.5.1 (dsEntityEntry)
>>>>>
>>>>> All other variables seem to be empty.
>>>>>
>>>>> For instance, a query for .1.3.6.1.4.1.2312.6.3.1.9 (dsURL) :
>>>>> [host] snmpwalk -Cp -On -v 1 -c comunity localhost
>>>>> .1.3.6.1.4.1.2312.6.3.1.9
>>>>> Variables found: 0
>>>>>
>>>>> The same happens if I do it a bit further up the tree:
>>>>> [host] snmpwalk -Cp -On -v 1 -c comunity localhost 
>>>>> .1.3.6.1.4.1.2312.6
>>>>> (rhds)
>>>>> Only the values from dsEntityEntry are returned.
>>>>>
>>>>> I am lost here...
>>>>>
>>>>> Regards,
>>>>> Mitja
>>>>>
>>>>> -- 
>>>>> 389 users mailing list
>>>>> 389-users at redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>>>>>
>>>>>
>>>> -- 
>>>> 389 users mailing list
>>>> 389-users at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>>>>
>>> -- 
>>> 389 users mailing list
>>> 389-users at redhat.com
>>> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>>>
>> -- 
>> 389 users mailing list
>> 389-users at redhat.com
>> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>
> -- 
> 389 users mailing list
> 389-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users




More information about the Fedora-directory-users mailing list