Hello,
I am running Nagios 2.5 on FreeBSD 5.3 machine running Pentium 4 with 1GB RAM. I have configured 42 hosts and altogether 744 services. I am also using external commands (so that I have certain control via web interface) and nagiosgraph functionality, operating “the new way”, so that the graphs are updated every 30 seconds.
When I say “top”, I always see something like this:
last pid: 10923; load averages: 2.82, 2.90, 2.96
up 12+12:45:34 11:57:44
190 processes: 3 running, 187 sleeping
CPU states: 51.4% user, 0.0% nice, 48.6% system, 0.0% interrupt, 0.0% idle
Mem: 634M Active, 94M Inact, 176M Wired, 31M Cache, 110M Buf, 53M Free
Swap: 983M Total, 192M Used, 791M Free, 19% Inuse
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
77135 nagios 127 0 7240K 2384K RUN 952:41 35.30% 35.30% nagios
70792 nagios 127 0 7240K 2384K RUN 956:51 34.96% 34.96% nagios
10677 vscan 109 0 41776K 32956K RUN 0:00 1.31% 1.17% perl5.8.8
611 www 20 0 300M 103M kserel 265:48 0.54% 0.54% java
…
So apparently Nagios is causing all this load on my server. Is this behavior normal? How to see what exactly is Nagios doing with my CPU?
Thanks!
Nejc