Page 2 of 2
Re: nagios slow when login
Posted: Tue Jun 06, 2017 9:36 am
by tgriep
If you login to the XI server as a local user, not a user that was imported from Active Directory, does it still take 20 seconds to login?
When using AD to login to the XI server, the AD DNS / Domain Controller servers have to be added to the /etc/resolv.conf file.
The XI server needs to be added to the AD DNS server and resolvable by the XI server, the AD servers as well as the workstations you are using to access the server.
Also, login to the XI server UI, go to the Admin > System Settings menu and verify that the Program URL is setup to use the FQDN.
If you verify the above is done and you still have issues, please run the following and post the output.
Code: Select all
hostname -a
hostname -A
cat /etc/hosts
cat /etc/resolv.conf
cat /etc/nsswitch.conf |grep hosts
Re: nagios slow when login
Posted: Tue Jun 06, 2017 11:15 pm
by s.wiki
Hi ,
I am using nagiosadmin localuser from the beginning to test the login.
I have change the program url to fqdn.(( it was ipaddress earlier)
The error message changed to
Code: Select all
Couldn't resolve host 'api.nagios.com', referer: https://imsvm.abc.bank.my/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
i censored out some information
below is the output:
Code: Select all
[root@imsvm ~]# hostname -a
[root@imsvm ~]# hostname -A
[root@imsvm ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
#nagios and its' friends.
#192.168.248.175 imsvm.abc.bank.my imsvm
[root@imsvm ~]# cat /etc/resolv.conf
nameserver x.x.x.x
nameserver x.x.x.y
search abc.bank.my
[root@imsvm ~]# cat /etc/nsswitch.conf |grep host
#hosts: db files nisplus nis dns
hosts: files dns
[root@imsvm ~]#
Re: nagios slow when login
Posted: Wed Jun 07, 2017 10:38 am
by tgriep
Edit the /etc/hosts file and un-comment this line.
Code: Select all
192.168.248.175 imsvm.abc.bank.my imsvm
Next, the Couldn't resolve host 'api.nagios.com' is a DNS server issue.
The 2 servers in your resolve.conf should be able to resolve the IP address for api.nagios.com.
Fix that and that should help out.
If it still takes 20 seconds, disable the LDAP / AD integration and see if it that helps.
Even though you are using a local only account, it may be verify all of the user accounts in the list.
That could be the issue as well if one of the accounts are not active, etc.
Re: nagios slow when login
Posted: Thu Jun 08, 2017 3:32 am
by s.wiki
tgriep wrote:Edit the /etc/hosts file and un-comment this line.
Code: Select all
192.168.248.175 imsvm.abc.bank.my imsvm
Next, the Couldn't resolve host 'api.nagios.com' is a DNS server issue.
The 2 servers in your resolve.conf should be able to resolve the IP address for api.nagios.com.
Fix that and that should help out.
If it still takes 20 seconds, disable the LDAP / AD integration and see if it that helps.
Even though you are using a local only account, it may be verify all of the user accounts in the list.
That could be the issue as well if one of the accounts are not active, etc.
Hi,
I commented /etc/hosts because the dns is working.
is the api.nagios.com should be same as my ip 192.168.248.175?
I will test the disable ldap and let u know .Thanks
Re: nagios slow when login
Posted: Thu Jun 08, 2017 9:33 am
by tgriep
No, the api.nagios.com server is Nagios's licensing server and is not on your network.
If you cannot run this on your XI server and get a valid IP address, then the DNS setting / servers are not resolving that host from the DNS servers on the internet.
Let us know what you find out.
Re: nagios slow when login
Posted: Fri Jun 09, 2017 4:26 am
by s.wiki
tgriep wrote:No, the api.nagios.com server is Nagios's licensing server and is not on your network.
If you cannot run this on your XI server and get a valid IP address, then the DNS setting / servers are not resolving that host from the DNS servers on the internet.
Let us know what you find out.
Hi ,
My nagios server does not have internet connection, and the DNS server is just for local servers.
May I know why is api.nagios.com needs to be resolve? (as my nagios server and the DNS are not connecting to internet.)
is it because i configure using this ? :
https://assets.nagios.com/downloads/nag ... s%20XI.pdf
Thanks alot
Re: nagios slow when login
Posted: Fri Jun 09, 2017 9:19 am
by tgriep
Once a day, the XI server checks in to the API server to get the Maintenance Status for the XI license so it can prompt you when the license is about to expire.
If you have access to a proxy server that can access the internet, you can follow this KB article to setup the XI server to use the proxy server.
https://support.nagios.com/kb/article/n ... oxies.html
Re: nagios slow when login
Posted: Wed Jun 14, 2017 4:31 am
by s.wiki
Hi,
I'll apply for the proxy to check for the maintenance status. However may i know is there any way to disable the api checks? this is because my nagios server should access to the internet.
Thanks
Re: nagios slow when login
Posted: Wed Jun 14, 2017 8:44 am
by scottwilkerson
You can disable regular update in Admin -> System Settings -> Uncheck Automatically Check for Updates
Re: nagios slow when login
Posted: Fri Jun 16, 2017 2:15 am
by s.wiki
scottwilkerson wrote:You can disable regular update in Admin -> System Settings -> Uncheck Automatically Check for Updates
Hi,
that solve the issue,
Thanks for you guys support