nagiosxi very slow

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chipiock
Posts: 12
Joined: Mon May 21, 2012 3:08 pm

nagiosxi very slow

Post by chipiock »

Hi,
i am new to the nagiosxi.
I have install a vmware nagios xi 2.4 appliance
I would like to monitor all my network ( 9000 ports ).
After the first 20 hosts, when I add a hosts the configuration saving is very slow.
I have modified the php .ini "max_execution_time = " to 240 because the script take more than 180 sec
Could you help me ?

kinds regards

frédéric
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagiosxi very slow

Post by scottwilkerson »

You may want to increase the memory in php.ini also.

What kind of a load is this server under?

When you go to Configure -> Core Config Manager -> Write Config Tool
If you select the items from the top down, which is taking the longest, and do you have many warnings in the check configuration?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chipiock
Posts: 12
Joined: Mon May 21, 2012 3:08 pm

Re: nagiosxi very slow

Post by chipiock »

Hi,
Thank you for your reply
this is the config. I have no error
thank you for your help



Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.40.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.30.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.9.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.13.255.10.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.5.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.6.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.40.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.6.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.40.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.7.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.90.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.10.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.6.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.70.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.90.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.8.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.8.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.11.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.90.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.40.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.5.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.30.6.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.90.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.200.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.13.255.18.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.70.7.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.50.5.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.30.30.5.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.13.255.20.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.7.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.5.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.6.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.200.15.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.200.11.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.13.255.16.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.200.22.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.50.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.100.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.30.7.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.20.7.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.30.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.41.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.50.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.5.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/192.168.254.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.30.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.10.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.70.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.4.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.13.255.17.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.60.8.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.70.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.30.3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.13.255.14.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.80.7.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.70.6.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/172.16.40.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.30.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.9.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.13.255.10.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.5.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.6.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.40.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.6.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.40.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.7.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.90.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.10.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.6.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.70.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.90.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.8.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.8.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.11.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.90.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.40.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.5.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.30.6.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.90.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.200.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.13.255.18.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.70.7.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.50.5.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.30.30.5.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.13.255.20.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.7.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.5.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.6.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.200.15.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.200.11.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.13.255.16.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.200.22.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.50.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.100.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.30.7.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.20.7.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.30.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.41.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.50.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.5.cfg'...
Processing object config file '/usr/local/nagios/etc/services/192.168.254.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.30.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.10.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.70.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.4.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.13.255.17.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.60.8.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.70.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.30.3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.13.255.14.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.80.7.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.70.6.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 8382 services.
Checking hosts...
Checked 69 hosts.
Checking host groups...
Checked 21 host groups.
Checking service groups...
Checked 6 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 7 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 109 commands.
Checking time periods...
Checked 8 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nagiosxi very slow

Post by lmiltchev »

Did you increase the memory limit in the php.ini file as suggested by scottwilkerson?

Open the php.ini file in a text editor, scroll all the way down to the bottom of the script and change the line that says:

Code: Select all

memory_limit = ...
to

Code: Select all

; memory_limit = ...
Then scroll up to around line 314 and increase the memory limit:

Code: Select all

memory_limit = <new value>
After this, run:

Code: Select all

service httpd restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
chipiock
Posts: 12
Joined: Mon May 21, 2012 3:08 pm

Re: nagiosxi very slow

Post by chipiock »

Yes I have make changes in the php.ini but there is only one line with memory_limit= and this is on line 457. There is no memory_limit on line 314. Is-it normal ?

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.confi ... ution-time
max_execution_time = 240

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.confi ... input-time
max_input_time = 180

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.confi ... ting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.p ... mory-limit
memory_limit = 1024M
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagiosxi very slow

Post by scottwilkerson »

chipiock wrote:Yes I have make changes in the php.ini but there is only one line with memory_limit= and this is on line 457. There is no memory_limit on line 314. Is-it normal ?
This is normal. Depends on your system.

Again,
scottwilkerson wrote:What kind of a load is this server under?
How many CPU's are allocated to the VM?
How much memory is allocated to the VM?

http://assets.nagios.com/downloads/nagi ... ements.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chipiock
Posts: 12
Joined: Mon May 21, 2012 3:08 pm

Re: nagiosxi very slow

Post by chipiock »

Hi,

What kind of a load is this server under?

The load are query SNMP + ping to network material

How many CPU's are allocated to the VM?
8
How much memory is allocated to the VM?

8 Gb

Do i make some parametre for php to use the 8 cpu ? or something else ?

Kinds regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagiosxi very slow

Post by scottwilkerson »

I was wondering more about this load
load.PNG
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked