We have 4 Nagios xi instances already updated to 5.8.5, but we are facing high CPU usage on only one of them where I can't find the exact reason.
The server has 4 CPUs and 16GB RAM.
Already tried:
Code: Select all
check_result_reaper_frequency=3
max_check_result_reaper_time=10
Code: Select all
max_concurrent_checks=20
CPU usage is as below now (but webserver interface is so slow)
Code: Select all
top - 08:28:32 up 1 day, 34 min, 1 user, load average: 29.86, 25.89, 25.12
Tasks: 212 total, 28 running, 184 sleeping, 0 stopped, 0 zombie
%Cpu(s): 77.8 us, 19.2 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 3.0 si, 0.0 st
KiB Mem : 16431432 total, 8797700 free, 2255444 used, 5378288 buff/cache
KiB Swap: 2097148 total, 2097148 free, 0 used. 13016932 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21233 mysql 20 0 2630900 707264 9848 S 20.8 4.3 227:45.00 mysqld
401 nagios 20 0 251172 61528 2264 R 18.5 0.4 0:03.33 curl
952 nagios 20 0 243004 52804 2264 R 15.3 0.3 0:02.59 curl
1953 nagios 20 0 243004 38900 2264 R 15.3 0.2 0:01.35 curl
5145 apache 20 0 643764 33060 6108 R 15.3 0.2 0:04.50 httpd
2770 apache 20 0 119916 8480 2352 R 14.9 0.1 0:00.79 status.cgi
30747 apache 20 0 643892 32512 5656 R 14.6 0.2 0:08.59 httpd
31795 nagios 20 0 241748 95892 1352 R 14.3 0.6 0:04.14 send_nrdp.sh
3242 nagios 20 0 153116 11312 2236 R 12.7 0.1 0:00.39 check_ifopersta
31200 nagios 20 0 178320 55424 4392 R 11.7 0.3 0:14.84 mrtg
17779 apache 20 0 643776 33440 6204 S 11.0 0.2 0:07.58 httpd
3241 nagios 20 0 148164 10444 2196 R 10.4 0.1 0:00.32 check_ifopersta
3307 nagios 20 0 148032 10180 2192 R 10.1 0.1 0:00.31 check_ifopersta
7696 apache 20 0 643828 33368 6112 R 10.1 0.2 0:12.37 httpd
24838 apache 20 0 638756 28468 6244 S 10.1 0.2 0:28.56 httpd
3208 nagios 20 0 147636 9912 2192 R 8.4 0.1 0:00.26 check_ifopersta
3214 nagios 20 0 146448 8864 2188 R 8.1 0.1 0:00.25 check_ifopersta
3239 nagios 20 0 269904 6668 4824 S 8.1 0.0 0:00.25 curl
3277 nagios 20 0 205792 11660 4104 S 8.1 0.1 0:00.25 python
3339 nagios 20 0 146448 8868 2188 R 8.1 0.1 0:00.25 check_ifopersta
534 root 20 0 64000 27652 27276 S 7.5 0.2 38:35.42 systemd-journal
21348 apache 20 0 642904 32364 7200 R 7.5 0.2 0:24.72 httpd
3333 nagios 20 0 141372 7652 2140 R 6.5 0.0 0:00.20 check_ifopersta
3374 nagios 20 0 182792 8748 3488 R 4.9 0.1 0:00.15 python
2257 nagios 20 0 113700 2092 1388 S 4.2 0.0 0:00.99 send_nrdp.sh
15687 nagios 20 0 1047404 33956 3608 R 4.2 0.2 63:49.93 nagios
3406 nagios 20 0 138204 4500 2112 R 2.9 0.0 0:00.09 check_ifopersta
3413 nagios 20 0 138600 5024 2128 R 2.9 0.0 0:00.09 check_ifopersta
1085 root 20 0 592540 21180 18980 S 2.3 0.1 10:28.06 rsyslogd
9 root 20 0 0 0 0 R 1.3 0.0 31:53.37 rcu_sched
3015 nagios 20 0 115536 1700 1368 S 1.3 0.0 0:00.04 check_rrdtraf
3435 nagios 20 0 135216 3576 2072 R 1.3 0.0 0:00.04 check_ifopersta
31147 nagios 20 0 445680 26204 10544 S 1.3 0.2 0:00.59 php
3019 nagios 20 0 115536 1708 1368 S 1.0 0.0 0:00.03 check_rrdtraf
3445 nagios 20 0 18868 3172 1584 R 1.0 0.0 0:00.03 python
1753 root 20 0 162236 2436 1592 R 0.6 0.0 0:00.11 top
1 root 20 0 191308 4240 2620 S 0.3 0.0 3:29.58 systemd
6 root 20 0 0 0 0 S 0.3 0.0 1:34.27 ksoftirqd/0
47 root 39 19 0 0 0 R 0.3 0.0 0:37.35 khugepaged
712 dbus 20 0 58392 2668 1828 S 0.3 0.0 3:41.77 dbus-daemon
717 root 20 0 26492 1848 1456 S 0.3 0.0 1:33.76 systemd-logind
3243 nagios 20 0 115536 1700 1368 R 0.3 0.0 0:00.01 check_rrdtraf
3460 nagios 20 0 113284 1332 1148 R 0.3 0.0 0:00.01 sh
6524 root 20 0 159592 6184 4796 S 0.3 0.0 0:00.45 sshd
15691 nagios 20 0 10844 1116 820 S 0.3 0.0 2:16.41 nagios
15693 nagios 20 0 10844 1116 820 S 0.3 0.0 2:17.48 nagios
31186 nagios 20 0 445680 26072 10444 S 0.3 0.2 0:00.50 php
2 root 20 0 0 0 0 S 0.0 0.0 0:00.37 kthreadd
4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root rt 0 0 0 0 S 0.0 0.0 0:23.52 migration/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-drain
11 root rt 0 0 0 0 S 0.0 0.0 0:16.20 watchdog/0
12 root rt 0 0 0 0 S 0.0 0.0 0:16.16 watchdog/1
13 root rt 0 0 0 0 S 0.0 0.0 0:24.32 migration/1
14 root 20 0 0 0 0 S 0.0 0.0 1:06.53 ksoftirqd/1
16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H
17 root rt 0 0 0 0 S 0.0 0.0 0:16.63 watchdog/2
18 root rt 0 0 0 0 S 0.0 0.0 0:25.49 migration/2
19 root 20 0 0 0 0 S 0.0 0.0 1:04.31 ksoftirqd/2
I changed the following options in php.ini file too:
Code: Select all
max_execution_time = 120
max_input_vars = 50000
memory_limit = 1024M
Thanks in advance!