terricain / 389ds_exporter Goto Github PK
View Code? Open in Web Editor NEW389ds Prometheus exporter
License: Apache License 2.0
389ds Prometheus exporter
License: Apache License 2.0
We've made some changes to support startTLS.
We'd like to know if you like us to contribute a PR for that feature.
We also have some minor changes we'd like to contribute like Github Action and using go module.
the changes are a available in our fork, https://github.com/exosite/389ds_exporter .
I just try this against ipa-server-4.6.4-10.el7.centos.3.x86_64
and I got:
INFO[0010] Scrape completed in 0.009710 seconds
DEBU[0020] Starting metrics scrape
DEBU[0020] getting active accounts
DEBU[0020] getting staged accounts
DEBU[0020] getting preserved accounts
DEBU[0020] getting groups
DEBU[0020] getting hosts
DEBU[0020] getting hostgroups
DEBU[0020] getting sudo rules
DEBU[0020] getting hbac rules
DEBU[0020] getting dns zones
DEBU[0020] getting ldap conflicts
DEBU[0020] getting replication agreements
ERRO[0020] Scrape failed, error is:1 error occurred:
* LDAP Result Code 32 "No Such Object":
INFO[0020] Scrape completed in 0.008503 seconds
./389ds_exporter -debug -interval 10s -ipa-domain example.com -ldap.pass password
Hello,
i downloaded the exporter via go get
when i run the command "make" i get this error:
Makefile.common:128: recipe for target '/bin/staticcheck' failed
make: *** [/bin/staticcheck] Error 127
so i tried to run the exporter with flags by running this command:
./389ds_exporter -ipa-domain freeipa_server -ldap.user admin -ldap.pass 123456
but it only shows me the metrics of my machine like:
when i run the following command:
./389ds_exporter -ipa-domain freeipa_server -ldap.user "freeipa_user" -ldap.pass "password" -web.listen-address "freeipa_server"
i get this error:
ERRO[0078] Scrape failed, error is:unable to read LDAP response packet: unexpected EOF
PS: i installed the exporter in my prometheus server, it's not necessary to install it in the freeipa_server?
Thanks in advance
Hey, I've had to use a precompiled binary as I couldn't get the source to compile.
[389ds_exporter]$ make
>> checking code style
GOOS= GOARCH= go get -u honnef.co/go/tools/cmd/staticcheck
>> running staticcheck
/home/deploy/go/bin/staticcheck -ignore "" ./...
flag provided but not defined: -ignore
Usage of staticcheck:
staticcheck [flags] # runs on package in current directory
staticcheck [flags] packages
staticcheck [flags] directory
staticcheck [flags] files... # must be a single package
Flags:
make: *** [Makefile.common:93: common-staticcheck] Error 2
Precompiled Binary
[389ds_exporter-0.1.2.linux-386]$ ./389ds_exporter -ldap.addr "omitted" -ipa-domain "omitted" -ldap.pass "omitted" -web.listen-address "omitted"
INFO[0000] Starting prometheus HTTP metrics server on omitted:9496
INFO[0000] Starting 389ds scraper for omitted:389
2020/09/08 12:57:49 ldap: recovered panic in processMessages: runtime error: invalid memory address or nil pointer dereference
ERRO[0060] Scrape failed, error is:LDAP Result Code 200 "Network Error": ldap: response channel closed
INFO[0060] Scrape completed in 0.000775 seconds
CentOS Linux release 8.2.2004 (Core)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.