Nagios restart doubt

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Nagios restart doubt

Post 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..
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios restart doubt

Post 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.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios restart doubt

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios restart doubt

Post 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?
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios restart doubt

Post by yunushaikh »

Thanks Sir..

For clearing my doubts.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios restart doubt

Post by tmcdonald »

Can we close this thread now?
Former Nagios employee
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios restart doubt

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios restart doubt

Post 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.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Nagios restart doubt

Post by yunushaikh »

Ok thanks. You can close this thread
Locked