Latest VMWare release CPU loaded

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
afstcklnd
Posts: 4
Joined: Tue Jun 14, 2011 11:16 am

Latest VMWare release CPU loaded

Post by afstcklnd »

Hi,

I have just dowloaded the latest XI Demo VM image from the Nagios site and installed this as a VMWare machine on VMWare Server on 32-bit server.

After getting around the HTTP problem by editing the conf file to point to a valid folder for the logs, I have managed to get NagiosXI running. However, CPU is hitting 98% utilisation and 85% is down to system ??

'top' doesn't really tell me anything so can anyone advise please?

All the best
Andrew
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Latest VMWare release CPU loaded

Post by tonyyarusso »

Can you show us your top -c output? How many checks are you trying to run? How much RAM do you have allocated to the VM?
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
afstcklnd
Posts: 4
Joined: Tue Jun 14, 2011 11:16 am

Re: Latest VMWare release CPU loaded

Post by afstcklnd »

Hi,

The installation is straight out of the box so it's got the default config only (5 hosts I believe) - other than 'fixing' HTTP, I have done nothing yet.

Allocated memory is 768MB (430MB used) and 'top -c' is...

Code: Select all

top - 14:06:09 up  3:08,  1 user,  load average: 69.97, 66.05, 63.12
Tasks: 325 total,  53 running, 271 sleeping,   0 stopped,   1 zombie
Cpu(s):  9.7%us, 89.7%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.1%hi,  0.5%si,  0.0%st
Mem:    774612k total,   694620k used,    79992k free,     9840k buffers
Swap:  1048568k total,   224840k used,   823728k free,    42660k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3150 mysql     15   0  161m  11m 2968 S  6.3  1.5   3:21.17 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/v
27428 root      17   0  2560 1236  816 R  6.1  0.2   0:03.67 top -c
27610 postgres  15   0 21908 3744 2984 S  1.4  0.5   0:00.27 postgres: nagiosxi nagiosxi 127.0.0.1(40509) idle
 3558 nagios    15   0  6912  908  812 S  1.2  0.1   0:24.13 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
27583 nagios    25   0 12948 1796 1480 R  1.1  0.2   0:00.22 /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php
27147 nagios    25   0 26664  11m 5104 R  1.1  1.6   0:01.81 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
27231 nagios    25   0 23040 8180 4948 R  1.1  1.1   0:01.31 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
27260 nagios    25   0 22424 7496 4940 R  1.1  1.0   0:01.21 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
27270 nagios    25   0 22420 7568 4940 R  1.1  1.0   0:01.21 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
27584 nagios    25   0 12812 1760 1400 R  1.1  0.2   0:00.21 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
27586 nagios    25   0 12848 1364 1096 R  1.1  0.2   0:00.21 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
26779 nagios    25   0 31260  16m 5488 R  1.0  2.2   0:03.11 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
27046 nagios    25   0 27900  13m 5372 R  1.0  1.8   0:02.21 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
27047 nagios    25   0 27900  13m 5352 R  1.0  1.7   0:02.21 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
27081 nagios    22   0 28980  13m 4708 R  1.0  1.8   0:02.61 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
27143 nagios    25   0 26316  11m 5092 R  1.0  1.5   0:01.82 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
27144 nagios    25   0 26584  11m 5088 R  1.0  1.5   0:01.82 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
27146 nagios    25   0 26388  11m 5088 R  1.0  1.5   0:01.81 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
27199 nagios    25   0 24816 9.9m 5084 R  1.0  1.3   0:01.52 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
27220 nagios    25   0 24420 9728 5072 R  1.0  1.3   0:01.41 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
27232 nagios    25   0 23372 7936 4512 R  1.0  1.0   0:01.30 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
27259 nagios    25   0 22404 7492 4940 R  1.0  1.0   0:01.21 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
27264 nagios    25   0 22292 7368 4940 R  1.0  1.0   0:01.20 php -q /usr/local/nagiosxi/scripts/parse_core_eventlog.php
27273 nagios    25   0 22820 7940 4948 R  1.0  1.0   0:01.21 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
27316 nagios    25   0 22024 6352 4132 R  1.0  0.8   0:01.03 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
27396 nagios    25   0 21636 6468 4620 R  1.0  0.8   0:00.81 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
27397 nagios    25   0 21764 6632 4640 R  1.0  0.9   0:00.80 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
27405 nagios    25   0 21764 6556 4640 R  1.0  0.8   0:00.81 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
27431 nagios    25   0 21636 6012 4132 R  1.0  0.8   0:00.72 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
26956 nagios    17   0 28364  13m 5288 S  1.0  1.8   0:02.39 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
27429 nagios    25   0 21640 5952 4132 R  1.0  0.8   0:00.71 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
27608 postgres  15   0 21908 2836 2188 S  0.9  0.4   0:00.18 postgres: nagiosxi nagiosxi 127.0.0.1(40508) idle
27613 postgres  16   0 21908 2840 2192 S  0.9  0.4   0:00.18 postgres: nagiosxi nagiosxi 127.0.0.1(40510) idle
  384 root      11  -5     0    0    0 S  0.9  0.0   1:17.86 [kjournald]
 3560 nagios    15   0 13188 1028  848 S  0.8  0.1   0:53.55 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
27585 nagios    25   0  2228  696  596 R  0.7  0.1   0:00.14 /bin/ps axwo stat uid pid ppid vsz rss pcpu comm args
27596 nagios    19   0  2504  636  536 R  0.7  0.1   0:00.14 /bin/sh /usr/local/nagiosxi/scripts/nom_trim_nagioscore_checkpoints.sh
27578 root      22   0  4624 1180  996 S  0.6  0.2   0:00.12 /bin/sh /usr/bin/lsb_release -sd
14626 root      15   0     0    0    0 S  0.6  0.0   0:16.99 [pdflush]
27320 nagios    25   0 21892 6212 4132 R  0.6  0.8   0:00.92 php -q /usr/local/nagiosxi/scripts/parse_core_eventlog.php
27459 root      21   0  4992 2984 1576 R  0.6  0.4   0:00.61 /usr/bin/perl -w /usr/bin/mrtg /etc/mrtg/mrtg.cfg
27509 nagios    19   0  4304  808  700 R  0.6  0.1   0:00.51 ps -p 3430
27591 nagios    25   0 12844  608  428 R  0.6  0.1   0:00.11 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
26849 nagios    19   0 28348  13m 5280 R  0.5  1.8   0:02.56 php -q /usr/local/nagiosxi/scripts/parse_core_eventlog.php
27075 nagios    25   0 27968  12m 4620 R  0.5  1.6   0:02.01 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
27173 nagios    25   0 24816 9.9m 5076 R  0.5  1.3   0:01.62 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
27175 nagios    25   0 25760  10m 5084 R  0.5  1.4   0:01.62 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
27197 nagios    25   0 25304 9.8m 4564 R  0.5  1.3   0:01.51 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
27441 nagios    25   0 21056 4764 3604 R  0.5  0.6   0:00.60 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
27477 nagios    19   0 19660 3688 2684 R  0.5  0.5   0:00.52 php -q /usr/local/nagiosxi/scripts/parse_core_eventlog.php
27510 nagios    19   0  4304  804  700 R  0.5  0.1   0:00.40 ps -p 3430
27516 cacti     25   0 16632 3088 2320 R  0.5  0.4   0:00.40 php /var/www/cacti/poller.php
27544 nagios    19   0  4304  784  676 R  0.5  0.1   0:00.30 ps -p 3560
27550 nagios    25   0 12948 2708 2300 R  0.5  0.3   0:00.31 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
27174 nagios    25   0 25708  10m 5088 R  0.5  1.4   0:01.61 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
27440 nagios    25   0 21092 4516 3424 R  0.5  0.6   0:00.60 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
afstcklnd
Posts: 4
Joined: Tue Jun 14, 2011 11:16 am

Re: Latest VMWare release CPU loaded

Post by afstcklnd »

And then we get one like this...

Code: Select all

top - 14:13:09 up  3:15,  1 user,  load average: 61.04, 64.34, 63.57
Tasks: 332 total,  32 running, 295 sleeping,   0 stopped,   5 zombie
Cpu(s):  8.3%us, 88.6%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.7%hi,  2.5%si,  0.0%st
Mem:    774612k total,   724936k used,    49676k free,     1216k buffers
Swap:  1048568k total,   235040k used,   813528k free,    29600k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  155 root      17  -5     0    0    0 R 51.8  0.0   1:14.00 [kswapd0]
28349 nagios    18   0 27972  13m 5340 S 32.9  1.8   0:02.36 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
28330 root      17   0  2556 1180  784 R 28.1  0.2   0:07.69 top -c
28352 nagios    19   0 27900  13m 5124 R 14.2  1.7   0:02.11 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
28299 nagios    18   0 27968  12m 4820 S 13.9  1.7   0:02.09 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
28298 nagios    18   0 27900  13m 5320 S 12.6  1.7   0:02.11 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
28271 nagios    18   0 27900  13m 5336 S 12.3  1.7   0:02.19 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
28296 nagios    18   0 27960  13m 5340 S 11.9  1.7   0:02.19 /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php
28380 nagios    18   0 27920  13m 5320 S 10.1  1.7   0:02.28 php -q /usr/local/nagiosxi/scripts/parse_core_eventlog.php
28341 postgres  16   0     0    0    0 Z  6.0  0.0   0:01.71 [postmaster] <defunct>
28519 postgres  15   0 21912 3824 3060 S  5.7  0.5   0:00.32 postgres: nagiosxi nagiosxi 127.0.0.1(60834) idle
28399 postgres  15   0 21908 4152 3320 S  3.9  0.5   0:00.43 postgres: nagiosxi nagiosxi 127.0.0.1(60824) idle
28192 nagios    18   0 27976  12m 4824 S  3.7  1.6   0:02.12 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
28518 postgres  17   0 21912 2836 2192 S  3.2  0.4   0:00.18 postgres: nagiosxi nagiosxi 127.0.0.1(60833) idle
28465 postgres  17   0     0    0    0 Z  3.0  0.0   0:00.35 [postmaster] <defunct>
28191 nagios    18   0 27972  13m 5340 S  2.5  1.8   0:02.16 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
28297 nagios    18   0 27900  12m 4820 S  2.5  1.6   0:02.06 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
28398 postgres  15   0 21908 4144 3324 S  2.5  0.5   0:00.46 postgres: nagiosxi nagiosxi 127.0.0.1(60823) idle
27827 nagios    17   0 28364  13m 5780 S  2.3  1.7   0:02.66 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
28131 postgres  15   0     0    0    0 Z  2.1  0.0   0:00.30 [postmaster] <defunct>
27994 nagios    20   0 26996  13m 5292 R  1.8  1.7   0:02.31 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
28087 nagios    23   0 26044  10m 4580 R  1.8  1.4   0:01.71 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
28323 nagios    21   0  2228  692  592 R  1.8  0.1   0:00.60 ps -p 3439
28350 nagios    20   0 19496 4260 3212 R  1.8  0.5   0:00.61 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
28457 nagios    19   0 13148 2484 1860 R  1.8  0.3   0:00.41 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
28459 nagios    25   0 12848 1280 1044 R  1.8  0.2   0:00.20 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
28470 nagios    20   0 12848 1148  936 R  1.8  0.1   0:00.21 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
28471 nagios    21   0 12848 1508 1224 R  1.8  0.2   0:00.20 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
28472 nagios    20   0 12944 1932 1560 R  1.8  0.2   0:00.21 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
28489 postgres  25   0 21648 2420 1816 R  1.8  0.3   0:00.14 postgres: nagiosxi nagiosxi 127.0.0.1(60829) SELECT
28502 nagios    19   0  2368  408  336 R  1.8  0.1   0:00.13 /bin/sh /etc/init.d/ndo2db status
27717 postgres  15   0 21908 3720 2960 S  1.6  0.5   0:00.26 postgres: nagiosxi nagiosxi 127.0.0.1(40517) idle
28409 nagios    20   0  4276  740  636 R  1.6  0.1   0:00.30 ps -p 3430
28482 nagios    25   0 12944 1928 1552 D  1.6  0.2   0:00.20 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
28497 nagios    22   0  2452  836  712 R  1.6  0.1   0:00.10 ls -1tr /usr/local/nagiosxi/nom/checkpoints/nagioscore/1299098713.tar.gz /usr/local/nagiosxi/nom/checkpoints/nagioscore/1299534841.tar.gz /usr/loc
 3560 nagios    18   0 13188 1028  848 S  1.4  0.1   0:55.54 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
27702 nagios    15   0 31664  15m 5300 S  1.4  2.1   0:03.11 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
28490 postgres  25   0 21648 2032 1456 R  1.4  0.3   0:00.11 postgres: nagiosxi nagiosxi 127.0.0.1(60830) SELECT
27616 nagios    15   0 31664  16m 5300 S  1.2  2.2   0:03.37 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
28239 root      25   0  6308 4316 1588 R  1.2  0.6   0:00.91 /usr/bin/perl -w /usr/bin/mrtg /etc/mrtg/mrtg.cfg
28505 nagios    22   0  2500  892  788 S  1.2  0.1   0:00.08 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
28508 nagios    23   0  2500  896  788 S  1.2  0.1   0:00.07 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
28509 nagios    22   0  2500  868  768 R  1.2  0.1   0:00.09 sh -c /usr/bin/free -m | tail --lines=1 | awk '{ print $2,$3,$4}'
28024 nagios    18   0 28396  13m 5460 S  1.1  1.8   0:02.27 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
28491 postgres  25   0 21516 1936 1368 R  1.1  0.2   0:00.09 postgres: nagiosxi nagiosxi 127.0.0.1(60831) SET
28342 postgres  15   0 21908 3880 3100 S  0.9  0.5   0:00.41 postgres: nagiosxi nagiosxi 127.0.0.1(60819) idle
28400 postgres  17   0 21908 3712 2952 S  0.9  0.5   0:00.28 postgres: nagiosxi nagiosxi 127.0.0.1(60825) idle
28463 nagios    22   0  5964 1140  880 S  0.9  0.1   0:00.19 crond
28503 nagios    21   0  2500  896  788 S  0.9  0.1   0:00.07 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
  384 root      10  -5     0    0    0 S  0.7  0.0   1:21.21 [kjournald]
 3083 root      18   0 10220 2008 1880 S  0.7  0.3   1:04.52 sshd: root@pts/0
14626 root      15   0     0    0    0 S  0.7  0.0   0:18.07 [pdflush]
27173 nagios    18   0 28328  13m 5768 S  0.7  1.8   0:02.36 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
27825 nagios    15   0 28328  13m 5760 S  0.7  1.8   0:02.37 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
27991 nagios    20   0 28328  13m 5720 S  0.7  1.8   0:02.25 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
28332 postgres  18   0     0    0    0 Z  0.7  0.0   0:00.22 [postmaster] <defunct>
28373 postgres  15   0 21908 3816 3056 S  0.7  0.5   0:00.36 postgres: nagiosxi nagiosxi 127.0.0.1(60821) idle
ctmiller82
Posts: 6
Joined: Sun Jun 12, 2011 10:31 pm

Re: Latest VMWare release CPU loaded

Post by ctmiller82 »

I'm having the http folder issue also, how did you fix it?
afstcklnd
Posts: 4
Joined: Tue Jun 14, 2011 11:16 am

Re: Latest VMWare release CPU loaded

Post by afstcklnd »

To fix the HTTP issue...

Modify the line containing "/logs/error.log" to (for example) "/var/log/httpd/error.log" in "/etc/httpd/conf/httpd.conf" - you will need to create "/var/log/httpd"

This is a crude work-around though and there seem to be underlying problems with this build - it did allow me to start everything up though.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Latest VMWare release CPU loaded

Post by mguthrie »

We're aware of the issues in the latest VM, we're working on a rebuild for it.
Locked