Active directory monitor wizard - LDAP encapsulation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chris.robertson
Posts: 2
Joined: Fri Oct 16, 2020 11:02 am

Active directory monitor wizard - LDAP encapsulation

Post by chris.robertson »

Hi, I need to add my service account as part of the setup of this wizard but there is a space and an apostrophe in one of my OU names. I have tried to encapsulate with inverted comma's as well as internal encapsulation but no joy as yet.

Here is what I have put:

Base DN for user account
"OU=Service Account's,DC=company,DC=local"
User DN
"CN=svc-nagios,OU=Service Account's,DC=company,DC=local"

The error I get is:

Info:Could not search/find objectclasses in OU=Service

Date/Time: 2020-11-04 14:37:31


Any help or guidance would be greatly appreciated!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Active directory monitor wizard - LDAP encapsulation

Post by cdienger »

I'll lab this up to test, but to be clear, you're getting this error when you run the check that the wizard creates and not in the actual wizard itself, correct?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
chris.robertson
Posts: 2
Joined: Fri Oct 16, 2020 11:02 am

Re: Active directory monitor wizard - LDAP encapsulation

Post by chris.robertson »

Thanks bud, yes this is when the monitor task runs, the wizard completes successfully but we have a space and apostrophe in the name of the OU "Service Account's" and the error states 'Service' which means that the space is causing the issue but likely the apostrophe would too. (I didn't create the OU but cannot change it now).

Much appreciated!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Active directory monitor wizard - LDAP encapsulation

Post by cdienger »

It seems to work on my system. Are you seeing the problem when you use the 'Run Check Command' button or do you see it in the dasboard? What happens if you try to run it on the command line? For example:

Code: Select all

/usr/local/nagios/libexec/check_ldap -H 192.168.55.5 -b "dc=acme,dc=local" -D "cn=svc-nagios,ou=Service Account's,dc=acme,dc=local" -P 'password'
?

Note that I had to put the password in single quotes. You may need to to the same.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked