nagios slow when login

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios slow when login

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagios slow when login

Post 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 ~]#
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios slow when login

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagios slow when login

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios slow when login

Post 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.

Code: Select all

nslookup  api.nagios.com
Let us know what you find out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagios slow when login

Post 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.

Code: Select all

nslookup  api.nagios.com
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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios slow when login

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagios slow when login

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios slow when login

Post by scottwilkerson »

You can disable regular update in Admin -> System Settings -> Uncheck Automatically Check for Updates
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
s.wiki
Posts: 82
Joined: Sat Mar 04, 2017 11:02 am

Re: nagios slow when login

Post 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
Locked