Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
sfoley Absent Member.
Absent Member.
1379 views

Graphing eDir calls

I want to generate graphs that show client load on our eDir servers. These servers are eDir 8.8 SP8 (SLES 11 SP3 ). Using Wireshark on a client and interpolating across all our servers I see about 3 LDAP binds/sec, 20 LDAP Modifies/sec, and 2000 LDAP Searches/sec. I want to graph this (using the eDir server as the source of data, not Wireshark) to see how it changes over time. I have not found anything in iMonitor or ndstrace that gives me this information. I believe that this information is in SNMP (ndsSearch, ndsCreateEntry, ndsAddEntry, ndsModifyEntry) and that is where I want to go unless someone else has a better way to do this.

I basically don't want to reinvent the wheel, but I can't find any information on someone doing this. At the moment I am looking at collectd and graphite. I tried logstash already and it seems to only work with SNMP traps.

Has anyone done this and what did you use?

Thanks for any insight.

Scott
Labels (1)
Tags (2)
0 Likes
5 Replies
Highlighted
Knowledge Partner
Knowledge Partner

Re: Graphing eDir calls

On Thu, 12 May 2016 18:16:03 +0000, sfoley wrote:

> I want to generate graphs that show client load on our eDir servers.
> These servers are eDir 8.8 SP8 (SLES 11 SP3 ). Using Wireshark on a
> client and interpolating across all our servers I see about 3 LDAP
> binds/sec, 20 LDAP Modifies/sec, and 2000 LDAP Searches/sec. I want to
> graph this (using the eDir server as the source of data, not Wireshark)
> to see how it changes over time. I have not found anything in iMonitor
> or ndstrace that gives me this information. I believe that this
> information is in SNMP (ndsSearch, ndsCreateEntry, ndsAddEntry,
> ndsModifyEntry) and that is where I want to go unless someone else has a
> better way to do this.


There are a set of statistics available via LDAP, you might just grab
those for what you're doing.

See what this Nagios plug in does:

https://exchange.nagios.org/directory/Plugins/Operating-Systems/Novell/
Check-eDirectory-LDAP-Statistics/details

it should give you some ideas.


--
David Gersic
Knowledge Partner http://forums.microfocus.com
If you find this post helpful, please click on the star below.
sfoley Absent Member.
Absent Member.

Re: Graphing eDir calls

This information is great. I did not know you can do this using ldapsearch. Using "-s base wholeSubtreeSearchOps oneLevelSearchOps searchOps errors securityErrors" this is what I got from one server. Not that anyone cares about my stats, but it does show that it works.

securityErrors: 0/sec
errors: 0.625/sec
searchOps: 1827/sec
oneLevelSearchOps: 119/sec
wholeSubtreeSearchOps: 354/sec

Thanks.

Scott
0 Likes
Knowledge Partner
Knowledge Partner

Re: Graphing eDir calls

Great string, thanks for sharing it.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Graphing eDir calls


I use Zabbix (http://zabbix.com, open-source). For start, you may use
Appliance from http://www.zabbix.com/download.php

My config:
/etc/zabbix/zabbix_agentd.conf.d/edirectory conf
UserParameter=ldap.threads.pool ,/etc/zabbix/ndsd_thread.sh "Pool
Workers" $1
UserParameter=ldap.threads.ready ,/etc/zabbix/ndsd_thread.sh "Ready
Work" $1
UserParameter=ldap.threads.waiting ,/etc/zabbix/ndsd_thread.sh
"Waiting Work" $1
UserParameter=ldap.performance ,/usr/bin/ldapsearch -x -LLL -h
localhost -p 389 -b "" -s base "(objectclass=*)" $1 | grep "$1:" | sed
's/$1: //'

/etc/zabbix/ndsd_thread.sh
---
#/bin/bash
STAT=$1
VAL=$2

.. /opt/novell/eDirectory/bin/ndspath &> /dev/null

#/opt/novell/eDirectory/bin/
sudo ndstrace -c threads 2>&1 | grep "$STAT" | sed -e 's/.*:\s//g' -e
's/, /\n/g' | grep "$VAL" | awk '{ print $2}'


#echo $RESULT

---

Create template very quickly and easy. Use manual:
https://www.zabbix.com/documentation/3.0/manual/config/templates


--
novell_kam
------------------------------------------------------------------------
novell_kam's Profile: https://forums.netiq.com/member.php?userid=11781
View this thread: https://forums.netiq.com/showthread.php?t=55866

0 Likes
davidkrotil Honored Contributor.
Honored Contributor.

Re: Graphing eDir calls

novell_kam can you share that Zabbix template ?
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.