Page 1 of 2
Process of adding a windows server to monitor does not f
Posted: Tue Sep 12, 2017 9:58 am
by idatech
Hello,
I'm facing an issue when adding a new windows server to monitor (Windows 2016)
the process doesn't finalize properly.
Many points are displayed Waiting ……………………………… And that's all… (see the Nagios_Server_Assistance_Config.png in attachment)
Current version : Nagios XI v5.4.9.
Agent NSCP 0.4.4.23 installed on the targeted server
I have the same issue with two Nagios servers:
- "test environment" where 3 windows servers were added for monitoring without issue (before the Nagios was update from version 5.4.4 to 5.4.8 and today updated to 5.4.9)
after the update to 5.4.8, it was no more possible to add a new windows server to monitor.
- "Prod environment" Nagios installed in version 5.4.8, no way to add a windows server to monitor...
Please could you advise ?
Thanks in adavance !!
Re: Process of adding a windows server to monitor does not f
Posted: Tue Sep 12, 2017 4:46 pm
by dwhitfield
I would first suggest taking a look at
https://support.nagios.com/kb/article.php?id=34
Did you recently set up or change your SSL?
If that does not resolve the issue, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Re: Process of adding a windows server to monitor does not f
Posted: Fri Sep 15, 2017 4:12 am
by idatech
Hello,
I followed the instructions concerning the "Fixing the sudoers Entries" from
https://support.nagios.com/kb/article.php?id=34
Then I again tried to add a windows server for monitoring, without success...
No SSL modification was made on both Nagios servers.
As requested I have downloaded and attached the profile.zip
Hopping that will help to solve my issue.
Thanks in advance for your support.
Re: Process of adding a windows server to monitor does not f
Posted: Fri Sep 15, 2017 2:49 pm
by dwhitfield
In /etc/php.ini. please change the following to the listed numbers (unless the numbers are higher than these):
max_execution_time = 60
max_input_time = 120
memory_limit = 256M
Also, please add the following line:
max_input_vars = 10000
After making these changes you'll need to restart the httpd service:
service httpd restart
Re: Process of adding a windows server to monitor does not f
Posted: Mon Sep 18, 2017 2:53 am
by idatech
Hello,
The modifications were made, but it doesn't seem to have solved the issue.
Thank you in advance for your advice.
Re: Process of adding a windows server to monitor does not f
Posted: Mon Sep 18, 2017 2:22 pm
by lmiltchev
I can see the following message in your profile:
ping: unknown host localhost
Are you using a proxy?
Can you run the following commands and show the output?
Code: Select all
cat /etc/hosts
ip addr
ping localhost -c 3
Re: Process of adding a windows server to monitor does not f
Posted: Tue Sep 19, 2017 3:23 am
by idatech
Hello,
Attached the two screenshots of both NagiosXI with the commands output
Any proxy is used internally...
Thanks for your help
Re: Process of adding a windows server to monitor does not f
Posted: Tue Sep 19, 2017 11:33 am
by lmiltchev
There are a couple of things that you need to look into:
1. You have to be able to access/ping localhost. I am not sure why you are not able to. Try changing the first entry in /etc/hosts (after 127.0.0.1) from "localhost.localdomain" to "localhost", or replace "srv-nagios" with "localhost". Restart apache:
You can also look into the post below for more ideas:
https://scottlinux.com/2012/06/09/cant- ... -in-linux/.
In any case, you need to be able to access localhost.
2. If you are using a proxy, you need to make sure it is configured properly, and that localhost is excluded. For more information, please review our KB article on the topic here:
https://support.nagios.com/kb/article/n ... oxies.html
Re: Process of adding a windows server to monitor does not f
Posted: Wed Sep 20, 2017 7:42 am
by idatech
Hello
Great, after changing the "localhost.localdomain" to "localhost" Nagios seem to be more cooperative.
I am going to add servers to monitor and keep you informed.
Thank you very much for your good support !

Re: Process of adding a windows server to monitor does not f
Posted: Wed Sep 20, 2017 9:05 am
by lmiltchev
Sounds good! Let us know if it is OK to lock this topic and mark it as "resolved". Thanks!