Search found 192 matches

by highness
Wed Jul 20, 2016 2:39 pm
Forum: Nagios XI
Topic: More RESTapi Fun
Replies: 8
Views: 228

Re: More RESTapi Fun

What is the Nagios XI version that you are currently running? I was able to add a host via the REST API and add it to a "predefined" hostgroup without any issues in Nagios XI 5.2.9. My "success" message is different than yours though: { "success": "Successfully ad...
by highness
Wed Jul 20, 2016 10:21 am
Forum: Nagios XI
Topic: More RESTapi Fun
Replies: 8
Views: 228

More RESTapi Fun

We use VCAC and AWS to spin up (and burn down) hosts on a daily basis. Trying to keep the current hosts in monitoring is a huge challenge. I've been trying to automate the addition of hosts to Nagios, but have have hit a stumbling block with the RESTapi stuff. Here is what I'm trying to add a host t...
by highness
Wed Jul 06, 2016 2:20 pm
Forum: Nagios XI
Topic: check_ldap fails from inside Nagios
Replies: 12
Views: 395

Re: check_ldap fails from inside Nagios

Here is the service definition: define service { host_name <REDACTED>.example.com service_description LDAP Bind use xiwizard_nrpe_service check_command check_ldaps!dc=example,dc=com!uid=nagios_monitor,ou=privls,dc=example,dc=com!NagMon123!"-p 636 -3 -T -v"!!!! max_check_attempts 5 check_in...
by highness
Wed Jul 06, 2016 10:41 am
Forum: Nagios XI
Topic: check_ldap fails from inside Nagios
Replies: 12
Views: 395

Re: check_ldap fails from inside Nagios

ssax wrote:Hmm, this is a head scratcher, add the -v option on the end of it for verbose and see if it gives any additional information after applying config.
Added the -v to the check, but no discernible information was returned. It still returns "Could not bind to the LDAP server".
by highness
Tue Jul 05, 2016 3:03 pm
Forum: Nagios XI
Topic: check_ldap fails from inside Nagios
Replies: 12
Views: 395

Re: check_ldap fails from inside Nagios

bwallace wrote:By any chance is the remote system a Solaris box?
https://docs.oracle.com/cd/E18752_01/ht ... ems-3.html
Nope - it's RHEL 7
by highness
Tue Jul 05, 2016 3:01 pm
Forum: Nagios XI
Topic: check_ldap fails from inside Nagios
Replies: 12
Views: 395

Re: check_ldap fails from inside Nagios

99.9% of the time it's because of special characters in the password, do you have special characters in your password? If so, try setting up a user variable and see if that resolves the issue: - Note: You can't use the test check button in the CCM, apply config and force a check to test. https://as...
by highness
Tue Jul 05, 2016 12:37 pm
Forum: Nagios XI
Topic: Unable to ACK (again)
Replies: 61
Views: 1723

Re: Unable to ACK (again)

Can't really do that, as we use SNMPTT.
by highness
Tue Jul 05, 2016 11:43 am
Forum: Nagios XI
Topic: Unable to ACK (again)
Replies: 61
Views: 1723

Re: Unable to ACK (again)

The permissions on the pipe are not correct. You have -rw-rw-r-- 1 root nagcmd 500 Jul 1 10:39 nagios.cmd but you should have: prw-rw---- 1 nagios nagcmd 0 Jun 30 13:43 nagios.cmd Try the deleting the file, and restarting nagios: rm -f /usr/local/nagios/var/rw/nagios.cmd service nagios restart The ...
by highness
Tue Jul 05, 2016 10:52 am
Forum: Nagios XI
Topic: check_ldap fails from inside Nagios
Replies: 12
Views: 395

Re: check_ldap fails from inside Nagios

When I su over to nags and run that command, it returns fine: /usr/local/nagios/libexec/check_ldaps -H ldap0001.example.com -p 636 -b "dc=example,dc=com" -D "uid=nagios_monitor,ou=privls,dc=example,dc=com" -P "supersecretpasswordgoeshere" -3 LDAP OK - 0.039 seconds resp...
by highness
Fri Jul 01, 2016 1:01 pm
Forum: Nagios XI
Topic: Unable to ACK (again)
Replies: 61
Views: 1723

Re: Unable to ACK (again)

root@fe1.nagios (Linux) $ ls -la /usr/local/nagios/var/rw/ total 12 drwxrwsr-x 2 nagios nagcmd 4096 Jul 1 10:27 . drwxrwxr-x 6 nagios nagios 4096 Jul 1 10:40 .. -rw-rw-r-- 1 root nagcmd 500 Jul 1 10:39 nagios.cmd srw-rw---- 1 nagios nagcmd 0 Jul 1 10:27 nagios.qh sorry, but this part got truncated ...