Nagios Apply Configuration Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Nagios Apply Configuration Issue

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Apply Configuration Issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Re: Nagios Apply Configuration Issue

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios Apply Configuration Issue

Post 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
mccollege
Posts: 45
Joined: Fri Jan 14, 2011 10:06 am

Re: Nagios Apply Configuration Issue

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Apply Configuration Issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked