Performance Issue on Nagios XI server
Posted: Tue Aug 25, 2015 9:22 am
Hi All,
We have been facing performance issue on our Nagios XI server. It takes time to load pages in GUI and some times the server crashes.
Truncated output for top command.
We have found a solution from Nagios support that mysql database needs to be repaired in this case. We do not have mysql root password handy. Can we run this script as root without knowing mysql root password.
Any thing else that should be done on server level or GUI level to fix this performance/slowness issue?
It is a VMware virutal machine with 15 virutal CPUs (model name: Intel(R) Xeon(R) CPU L5640 @ 2.27GHz ) in it. We are monitoring around 800 hosts and 10000 services.
Regards
Tino
We have been facing performance issue on our Nagios XI server. It takes time to load pages in GUI and some times the server crashes.
Truncated output for top command.
Looks like mysql and apache are culprits and we would like to do some tweaking.PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3011 mysql 20 0 8893m 1.2g 3412 S 629.5 3.7 28557:15 /usr/libexec/mysqld
27285 apache 20 0 741m 207m 8540 R 75.5 0.6 4:56.56 /usr/sbin/httpd
27220 apache 20 0 600m 70m 8544 R 71.6 0.2 4:07.77 /usr/sbin/httpd
7875 apache 20 0 652m 115m 8232 R 60.5 0.4 0:40.75 /usr/sbin/httpd
15866 apache 20 0 563m 39m 9248 S 50.7 0.1 10:01.57 /usr/sbin/httpd
27854 apache 20 0 605m 79m 9220 R 45.8 0.2 1:29.18 /usr/sbin/httpd
27855 apache 20 0 593m 68m 8512 R 44.1 0.2 3:01.14 /usr/sbin/httpd
17722 apache 20 0 625m 101m 9224 S 41.9 0.3 7:30.30 /usr/sbin/httpd
4490 apache 20 0 572m 47m 8460 S 41.2 0.1 5:35.63 /usr/sbin/httpd
9429 apache 20 0 623m 98m 8236 R 40.6 0.3 1:57.69 /usr/sbin/httpd
9377 apache 20 0 607m 82m 8484 R 36.0 0.3 1:42.89 /usr/sbin/httpd
16592 apache 20 0 558m 33m 8456 S 34.0 0.1 1:23.25 /usr/sbin/httpd
4769 apache 20 0 608m 82m 9408 S 28.1 0.3 14:43.75 /usr/sbin/httpd
22516 apache 20 0 596m 70m 8500 R 27.1 0.2 4:53.89 /usr/sbin/httpd
We have found a solution from Nagios support that mysql database needs to be repaired in this case. We do not have mysql root password handy. Can we run this script as root without knowing mysql root password.
We have a database of 20G and how much time it can take for this repair to get completed?First, login to your Nagios XI server as the root user.
Next, stop the MySQL database server with the following command:
service mysqld stop
Run the Nagios XI database repair script with the following command:
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
The script will check and repair all tables in the nagios MySQL database. This process may take several minutes to complete,
depending on the size of your database.
Once the script has completed, start the MySQL database server with the following command:
service mysqld start
Any thing else that should be done on server level or GUI level to fix this performance/slowness issue?
It is a VMware virutal machine with 15 virutal CPUs (model name: Intel(R) Xeon(R) CPU L5640 @ 2.27GHz ) in it. We are monitoring around 800 hosts and 10000 services.
Please suggest.~]# free -m
total used free shared buffers cached
Mem: 32105 23288 8816 0 136 16749
Regards
Tino