Nagios XI takes too much time to show real status

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Nagios XI takes too much time to show real status

Post by morabanc »

Hi,

We have a big Nagios XI implementation with external MySQL Database. Now we have 10000 checks.

The thing is, if we go to Nagios Core to one specific services and we disable notifications for this specific check. This change takes 10 or more minutes to be reflected in the NagiosXI web interface.

Then, what we can see in NagiosXI web interface its not real...

This server it's in production...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI takes too much time to show real status

Post by tmcdonald »

Sounds like you might need to implement some of our performance tweaks.

Do you have a ramdisk set up? https://assets.nagios.com/downloads/nag ... giosXI.pdf

Are you using passive checks at all? These can reduce load on the server. What is your load?

How many CPUs/cores do you have? How much RAM?

What sort of checks are you performing? ESX, WMI, and SSH checks can take a lot of resources.

How often are you checking on average? If they are all checking every minute then maybe some can be bumped to every 5 or 10.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI takes too much time to show real status

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Nagios XI takes too much time to show real status

Post by morabanc »

Hi

We had the data base offloaded, but we returned this one to the server and the problems are solved...

It don't looks like performance, as all system metrics are ok.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI takes too much time to show real status

Post by lmiltchev »

We had the data base offloaded, but we returned this one to the server and the problems are solved...
Offloading the mysql database to a remote server improves performance, unless there is a slow connection to the remote server (or intermittent networking issues). Let us know if it is OK to lock this topic. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Nagios XI takes too much time to show real status

Post by morabanc »

Hi,

I mean, it's not a server problem or resources problem, the thing it's that NAgios Core + Gearmand + MySQL are working fine, but the XI interface it's very slow. For example:

- After apply new changes/configurations NagiosXI needs more then 5 or 10 minuts to be in ready status.
- If a host goes down, you can see the problem in the Nagios Core but the change is not reflected to the XI interfaces until after 5 or 10 min.
- If someone disable the notifications for one host, this change is not visible in the XI interface until after 5 or 10 min

We moved the Data Base to an external server, but the problem is the same. The XI interface is working very slowly.

I attached some images with Information about System & Nagios Status

Regards
You do not have the required permissions to view the files attached to this post.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Nagios XI takes too much time to show real status

Post by morabanc »

Find Attached the CPU and Free commands output.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI takes too much time to show real status

Post by lmiltchev »

Is mysql currently local or offloaded? Do you have any errors in the mysqld.log? Do you have many users accessing the web UI at the same time? It is possible that you are hitting a mysql connection limit? Can you run the following two commands and show us the output?

Code: Select all

echo "show processlist;"|mysql -pnagiosxi|wc -l
cat /etc/my.cnf|grep max_connections
Also, are you using NAT, Proxy, or SSL on this system? Have you tried tweaking the performance settings (selecting the "Use Unified Tactical Overview", "Use Unified Hostgroup Screens", and "Use Unified Servicegroup Screens" check-boxes)?

Admin->Performance Settings->Pages
Be sure to check out our Knowledgebase for helpful articles and solutions!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI takes too much time to show real status

Post by tmcdonald »

Additionally, please run the following command as root from the Nagios server command line and post the results:

Code: Select all

ipcs -q
Former Nagios employee
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Nagios XI takes too much time to show real status

Post by morabanc »

Solved,


With local or external DB Server the Solution was add the following lines. The line that solved the problem is "innodb_flush_log_at_trx"

#InnoDB Settings
innodb_buffer_pool_size=3G
innodb_flush_log_at_trx_commit=2

#Other
max_connections=500
max_connect-errors=1000
skip-name-resolve

Now it's working ok with local and external db.

Thanks
Locked