Page 1 of 1
Difficulty adding new servers to XI
Posted: Tue Dec 04, 2018 10:53 am
by rferebee
Good morning,
I'm experiencing an issue that I haven't before while attempting to add 4 new servers to XI.
XI is not recognizing the servers when I try to add them through Auto-Discovery. It comes back with 0 New/0 Found.
I have verified connectivity to each server, I am able to telnet on port 5666 back to my XI server from the servers I'm trying to add, I have verified with my Network team that all necessary permits are in place (confirmed via telnet) and I have verified that Windows firewall is not enable on the devices. I have even reinstalled the NSClient on each server to no avail.
I'm at a loss for what else it could be.
Any advice would be greatly appreciated. Thank you.
Re: Difficulty adding new servers to XI
Posted: Tue Dec 04, 2018 3:32 pm
by lmiltchev
Are you running the Auto-Discovery wizard against individual IPs or you are using a range, e.g. "192.168.1.0/24"? Have you modified the /etc/sudoers file from the "default"?
I have even reinstalled the NSClient on each server to no avail.
If you know the IP addresses of your target machines, and you already installed NSClient++ agent on each one, why don't you just run the Windows Server wizard instead?
Re: Difficulty adding new servers to XI
Posted: Thu Dec 06, 2018 10:12 am
by rferebee
I'm running auto-discover against individual IP addresses.
As far as I'm aware the /etc/sudoers file has not been modified recently. The only major change we've made in the last week was upgrading our environment to 5.5.7.
Hmmm, so it appears that when using the Windows Server wizard I'm able to add the device to Nagios. My question though, what is different between adding servers using auto-discovery versus adding them with a specific wizard? I've always used auto-discovery without issue.
Re: Difficulty adding new servers to XI
Posted: Thu Dec 06, 2018 12:28 pm
by lmiltchev
I'm running auto-discover against individual IP addresses.
The auto-discovery wizard used to be able to scan individual IP addresses. I believe this is a bug that was introduced in the later versions of XI. It will be fixed in the Nagios XI 5.5.8 that should be released sometime next week. If you don't want to wait, you could try the following workaround:
1. Backup you Nagios XI instance -
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
2. Make a backup of the original autodiscover_new.php file
Code: Select all
cp -p /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php.orig
3. Download the zip file below:
autodiscover_new.zip
unzip it, and place the autodiscover_new.php in the "/usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/" directory.
4. Make sure the permissions are set correctly:
Code: Select all
chown root.nagios /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php
chmod 640 /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php
Try running the auto-discovery wizard against a single IP address. Is it working now for you?
My question though, what is different between adding servers using auto-discovery versus adding them with a specific wizard? I've always used auto-discovery without issue.
The typical use of the Auto-Discovery wizard is to check for any network devices attached to a subnet. It scans ports, and finds services that are using these ports. It's very convenient but it doesn't provide as much detail as an agent would do. Having an agent installed on the remote box (NCPA, NSClient++, NRPE, etc.) and running a specific wizard would allow you to monitor a lot more metrics.
Re: Difficulty adding new servers to XI
Posted: Thu Dec 06, 2018 1:29 pm
by rferebee
Ok, perfect. Thanks for your help.
We'll just use the wizards for now and wait for 5.5.8.
You can close this request. Have a great day!
Re: Difficulty adding new servers to XI
Posted: Thu Dec 06, 2018 1:36 pm
by lmiltchev
I am glad I could help!