24 Dec 2018 06:53 AM - last edited on 10 Dec 2021 08:29 AM by MaciejNeumann
Hi Dynatrace,
I'd like to monitoring OpenLDAP DB server by Oneagent agent.
So, does Oneagent can monitoring OpenLDAP similar with MongoDB ?
I've try to install on this server but have no transaction found.
Thanks
Regards,
Sittha Jaidee
Solved! Go to Solution.
24 Dec 2018 08:27 AM
Hello,
Dynatrace will not recognize transactions on DB when you will install agent only on DB host. Such informations are recorded on application endpoint (ado.net, jdbc, php pdo etc). You should install agent there.
Installing on DB host only will give you informations about hosts and maybe process performance without transactions. You can also write plugin which will take additional metrics from your DB but you will never catch transactions there.
Regards,
Sevastan
24 Dec 2018 08:36 AM
Hi
Thank you for your answer and suggestion.
Any document or tutorial that I can following for write plugin which will take additional metrics from my OpenLDAP server please.
I've try to searching but found nothing related with OpenLDAP server.
Thank you
Regards,
Sittha
24 Dec 2018 09:43 AM
I don't think that any exist now but it's quite easy to develop using Dynatrace tools:
https://www.dynatrace.com/news/blog/extend-dynatrace-custom-monitoring-plugins/
Here is good article about that, there is also a link to some examples of plugins that are included in dynatrace. You can use them as starting point 🙂
Sebastian
24 Dec 2018 09:47 AM
This mean Oneagent doesn't out of the box support OpenLDAP, am I correct ?
Sittha
24 Dec 2018 09:54 AM
I didn't find openldap in supported technology so I'm afraid not. As I said, those extra metrics can be acheaved via plugin (for example for mssql you will se deadlock, pagelife etc). But this will be not transaction metrics. But If you have application process that is communicating with this DB i it possible that you will see DB transactions from application end (as I've said previously).
Sebastian
25 Dec 2018 02:54 AM
Thanks a lot, Sebastian
27 Dec 2018 09:10 AM
To get transaction data (PurePaths) it would be necessary to instrument the OpenLDAP manually by the Dynatrace SDK. This is almost certainly achievable but will require a decent C knowledge and you will need to use your custom build of OpenLDAP.
I don't know your environment and situation, I don't think it worth the effort.
With OneAgent plugins, you can get just metrics, but no individual transactions.
27 Dec 2018 10:11 AM
Hi Julius,
Thank you for an answer.
Is it possible to give me an example metrics that I'd get if I implement with Dynatrace SDK.
Our core platform use OpenLDAP in term of main database. So, I'd like to see end to end monitoring.
27 Dec 2018 10:20 AM
You can read more here:
https://www.dynatrace.com/news/blog/dynatrace-oneagent-sdk-c-service-transaction-monitoring-c-native-applications/
I've read more about open LDAP and actually there is like Julius said. If you will compile your own build of OpenLDAP and instrument using tools from dynatrace you should be able to see transactions. But it is really hard work to do if you don't know the actual code of app and has to create revere engineering.
27 Dec 2018 12:03 PM
You have to distinguish between OneAgent SDK and OneAgent plugins.
Plugins are written in Python and you are able to collect custom metrics using the Python code and push the metrics to monitored processes (or host).
SDK is in fact a library that you need to use in the code of your monitored application. It enables you capture transactions, remote calls, etc. So basically the transaction data.
For SDK it is essential that you understand the application code to be able to insert the SDK calls where necessary. Also, keep in mind you will need to use your customized build of the application. It's definitely a long journey to success.