avail.cgi high cpu
Posted: Tue Apr 21, 2020 5:07 pm
Nagios Version 4.4.5 running in a container, 6G RAM Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz X 2 , checking 4500 services.
Normal system load
top - 15:03:24 up 144 days, 20:45, 0 users, load average: 0.62, 0.59, 0.48
Tasks: 78 total, 1 running, 77 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.7 us, 1.9 sy, 0.0 ni, 94.2 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem : 5940400 total, 1622464 free, 909408 used, 3408528 buff/cache
KiB Swap: 2097148 total, 1705664 free, 391484 used. 4395548 avail Mem
When running availability reports for one month or more avail.cgi shows almost %100 CPU
Other reports for 7 days takem 1 second to complete.
Tasks: 53 total, 2 running, 51 sleeping, 0 stopped, 0 zombie
%Cpu(s): 27.3 us, 0.2 sy, 0.0 ni, 72.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 5940400 total, 1584688 free, 946856 used, 3408856 buff/cache
KiB Swap: 2097148 total, 1705664 free, 391484 used. 4358180 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18497 nagios 20 0 140436 53984 9228 R 100.0 0.9 0:19.64 avail.cgi
21130 nagios 20 0 35344 1052 828 S 8.3 0.0 0:23.51 nagios
I then get a timeout and the avail.cgi still continues to run and needs to be killed manually.
Anyone know if this is a bug or a setting issue ?
Normal system load
top - 15:03:24 up 144 days, 20:45, 0 users, load average: 0.62, 0.59, 0.48
Tasks: 78 total, 1 running, 77 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.7 us, 1.9 sy, 0.0 ni, 94.2 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem : 5940400 total, 1622464 free, 909408 used, 3408528 buff/cache
KiB Swap: 2097148 total, 1705664 free, 391484 used. 4395548 avail Mem
When running availability reports for one month or more avail.cgi shows almost %100 CPU
Other reports for 7 days takem 1 second to complete.
Tasks: 53 total, 2 running, 51 sleeping, 0 stopped, 0 zombie
%Cpu(s): 27.3 us, 0.2 sy, 0.0 ni, 72.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 5940400 total, 1584688 free, 946856 used, 3408856 buff/cache
KiB Swap: 2097148 total, 1705664 free, 391484 used. 4358180 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18497 nagios 20 0 140436 53984 9228 R 100.0 0.9 0:19.64 avail.cgi
21130 nagios 20 0 35344 1052 828 S 8.3 0.0 0:23.51 nagios
I then get a timeout and the avail.cgi still continues to run and needs to be killed manually.
Anyone know if this is a bug or a setting issue ?