I have changed from nagios to centreon-plugin-Applications-Protocol-Ldap to check for response time of an LDAP server.
The nagios plugin allowed me to specify the port, the centreon plugin doesn't using the templates available to centreon web, but seems works.
If I dont't specify the port when launching the command from the poller's cli, or specify the correct port like hostname:port, it works, but fails as expected if I specify a wrong port.
So, does the port is automatically used by the server to answer when the check arrives? Or does the plugin checks several ports?
Best answer by ponchohView original
We use https://metacpan.org/pod/Net::LDAP
as you can see here:
as a result:
thanks for the explanation. It is working as expected then.