Page 1 of 1
Nagios Apply Configuration Issue
Posted: Thu Dec 01, 2011 3:46 pm
by mccollege
Hi,
I've been adding a lot of switches to our Nagios install in the last couple of days.
When I tried to add my 30th~ or so switch the Configuration Verification failed. Now normally it would create the snapshot and I could troubleshoot what was wrong, but it's not creating the failed snapshot.
I removed the switch service/hosts and the Configuration Verification still fails, still not generating a the failed snapshot result.
Any ideas?
Also, is there a limit to the number of hosts/services nagios can support?
Re: Nagios Apply Configuration Issue
Posted: Thu Dec 01, 2011 4:57 pm
by lmiltchev
There is no limit to the number of hosts/services that Nagios can support. Try running the Write Config Tool to see what kind of error you will get. Go to:
Core Config Manager->Tools->Write Config Files, click on the 4 "Go" buttons and post the output, so we can review it.
Re: Nagios Apply Configuration Issue
Posted: Fri Dec 02, 2011 10:54 am
by mccollege
Ok, when I click on "Go" for "Write Monitoring Data" it attempts that for a minute or so and then just blanks that frame out.
I didn't proceed with the other steps, should I?
Re: Nagios Apply Configuration Issue
Posted: Fri Dec 02, 2011 11:23 am
by mguthrie
I'm guessing you're hitting either a PHP timeout or memory limit. You can verify this by checking /var/log/httpd/error_log.
Take a look at the following solution and see if it resolves the issue.
http://support.nagios.com/wiki/index.ph ... _Completes
Re: Nagios Apply Configuration Issue
Posted: Fri Dec 02, 2011 11:39 am
by mccollege
That seems to have resolved the problem.
In the /etc/php.ini
I upped the values to:
max_execution_time = 360
max_input_time = 360
memory_limit = 512M
and commented out
; Up the memory limit
; memory_limit = 64M
at the bottom.
So we're already up to 3k~ services.
As we add more switches, should we expect to have to up these values even more at the load increases? Are there any other variables that would affect this as well?
Re: Nagios Apply Configuration Issue
Posted: Fri Dec 02, 2011 1:38 pm
by lmiltchev
mccollege,
You won't have to up these values unless you apply configuration for a massive number of hosts AT ONCE. With the values you've set in your php.ini file, you should be fine.