Page 1 of 1

Nagios restart doubt

Posted: Tue Jun 30, 2015 2:40 pm
by yunushaikh
Hello Experts,
Is it compulsory to restart the nagios service whenever we make any changes in configuration files or Is there any other way to reload the configuration files?

I am asking this because If I start monitoring 200 servers at a time and I restart a nagios. It might take time to reload the Nagios. Am I correct? Please correct me if I am misunderstanding the concepts. I want to understand this very clearly as I have to monitor huge number of servers.

Thanks for all you help..

Re: Nagios restart doubt

Posted: Tue Jun 30, 2015 3:14 pm
by ssax
Correct, you need to restart Nagios when you make configuration changes, it really shouldn't take that long to start as long as your using Nagios Core 4.x.

I've heard Core can handle around 100,000 checks and should be able to start that in less than 10 seconds, I'm testing this now.

Re: Nagios restart doubt

Posted: Tue Jun 30, 2015 3:21 pm
by yunushaikh
Ok Sir, Thanks for that..
Yes I am using Nagios 4.0.8
Please let me know after you test So I can rely on this otherwise it will be very difficult to restart the service if number of servers increases.
You can lock this thread once you post after checking.

Thanks for all your help. As it was simple question but it was very helpful for me.

Re: Nagios restart doubt

Posted: Tue Jun 30, 2015 4:51 pm
by ssax
Virtual Machine - 2 Cores, 2 GB RAM

100,000 hosts (host checks only)

Code: Select all

[root@ssc66c myhost]# time service nagios start
Starting nagios: done.

real    3m23.105s
user    3m20.020s
sys     0m2.610s
------

I also created a RAMDisk to test how quickly it would load with all the config files in there to simulate faster disks, we only have 7200 RPM hard drives in our system.

Code: Select all

[root@ssc66c myhost]# time service nagios start
Starting nagios: done.

real    0m9.776s
user    0m4.499s
sys     0m4.819s
The disk IO is definitely the bottleneck :)

-----

Here is 10,000 hosts (without RAMDisk):

[root@ssc66c ramdisk]# time service nagios start
Starting nagios: done.

Code: Select all

real    0m1.587s
user    0m1.183s
sys     0m0.398s
------

Here is 20,000 hosts (without RAMDisk):

[root@ssc66c ramdisk]# time service nagios start
Starting nagios: done.

Code: Select all

real    1m49.800s
user    0m12.041s
sys     0m13.756s
------

What is the likelihood of you running 100,000 checks?

Re: Nagios restart doubt

Posted: Wed Jul 01, 2015 4:54 am
by yunushaikh
Thanks Sir..

For clearing my doubts.

Re: Nagios restart doubt

Posted: Wed Jul 01, 2015 10:57 am
by tmcdonald
Can we close this thread now?

Re: Nagios restart doubt

Posted: Wed Jul 01, 2015 11:50 am
by yunushaikh
Yes sir.. You can close this.

1 more simple question I have.

Can I randomize the checks that nagios does. Means I want some services to monitored in 10 min gap and then other services in next 10 min. Is there any option to do this.

Re: Nagios restart doubt

Posted: Wed Jul 01, 2015 12:03 pm
by jdalrymple
I'm going to close this thread.
yunushaikh wrote:Can I randomize the checks that nagios does. Means I want some services to monitored in 10 min gap and then other services in next 10 min. Is there any option to do this.
If this link doesn't answer your question please open a new thread accordingly.

Re: Nagios restart doubt

Posted: Wed Jul 01, 2015 12:11 pm
by yunushaikh
Ok thanks. You can close this thread