Hi Guys,
I want to establish nagios distributed architecture.
Will you please help me?? I read articles on nsca. But I didn't got that.
Will you guys please explain it in simple manner.??
Thanks in advance..
Configuring NSCA
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Configuring NSCA
NSCA allows Nagios to receive Passive check results from remote hosts.
The remote hosts must be using some sort of remote agent (like NSClient++ for Windows servers) to send the check results passively to Nagios.
I have a how-to guide here which may help:
http://sites.box293.com/nagios/guides/nsca
Does this help at all?
The remote hosts must be using some sort of remote agent (like NSClient++ for Windows servers) to send the check results passively to Nagios.
I have a how-to guide here which may help:
http://sites.box293.com/nagios/guides/nsca
Does this help at all?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuring NSCA
Hi,
Thanks for the quick reply. That link tells only how to create NSCA server.
I want to create distributed Nagios arcitecture, That means there will be one nagios server and multiple nagios as client.
Please guide me.
And thanks again that link is very helpful to understand NSCA.
Thanks for the quick reply. That link tells only how to create NSCA server.
I want to create distributed Nagios arcitecture, That means there will be one nagios server and multiple nagios as client.
Please guide me.
And thanks again that link is very helpful to understand NSCA.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Configuring NSCA
Do you want multiple Nagios servers responding back to one central Nagios server using NSCA?
Is there any reason why you're wanting to use NSCA over other methods like Mod Gearman?
Is there any reason why you're wanting to use NSCA over other methods like Mod Gearman?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuring NSCA
Hi,
Thanks for the reply. You got exactly right thing.
I want multiple Nagios servers responding back to one central Nagios server.
Here is my scenario.
I have already installed three nagios in my lab environment.
I want to make one nagios as central server and other will send there data to central nagios.
Other two are assumed to be established in different premises.
I don't want to to load balance the checks.
It would be great if central nagios also perform checks.
I tried mntos but my requirement is to access all host as they are local in nagios.
I do not need to login manually to other nagios.
will Mod Gearman fullfill this requirement.?? Or is there any other facility that will do exactly same with nagios core??
Please help.
Thanks in advance.
Thanks for the reply. You got exactly right thing.
I want multiple Nagios servers responding back to one central Nagios server.
Here is my scenario.
I have already installed three nagios in my lab environment.
I want to make one nagios as central server and other will send there data to central nagios.
Other two are assumed to be established in different premises.
I don't want to to load balance the checks.
It would be great if central nagios also perform checks.
I tried mntos but my requirement is to access all host as they are local in nagios.
I do not need to login manually to other nagios.
will Mod Gearman fullfill this requirement.?? Or is there any other facility that will do exactly same with nagios core??
Please help.
Thanks in advance.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Configuring NSCA
Both NSCA and Mod Gearman will meet these requirement but they both have different pros and cons.
NSCA will require defining host/service definitions at all locations. At your central location these will just be passive check objects. There is a lot more administrative overhead however it does work.
Mod Gearman will allow you to configure it all from a central site. You will only have one central nagios server and it will push out the checks to the "workers". The workers will be located at each separate site. They have all the required Nagios plugins installed to execute the checks locally and then send the results back to the central Nagios server. The workers can be configured to only process checks that are members of specific nagios host/service groups. So on your central Nagios server, your host and service definitions would have the hostgroup and servicegroup defined as well (like remote-site-01).
Have a look at this guide, it will get you up and running with a central Mod Gearman Job server and two additional worker servers. You will then need to configure your workers to target their respective Nagios groups (/etc/mod_gearman/mod_gearman_worker.conf).
http://sites.box293.com/nagios/guides/mod-gearman
Also, here is some more documentation on Mod Gearman:
https://labs.consol.de/nagios/mod-gearman/
NSCA will require defining host/service definitions at all locations. At your central location these will just be passive check objects. There is a lot more administrative overhead however it does work.
Mod Gearman will allow you to configure it all from a central site. You will only have one central nagios server and it will push out the checks to the "workers". The workers will be located at each separate site. They have all the required Nagios plugins installed to execute the checks locally and then send the results back to the central Nagios server. The workers can be configured to only process checks that are members of specific nagios host/service groups. So on your central Nagios server, your host and service definitions would have the hostgroup and servicegroup defined as well (like remote-site-01).
Have a look at this guide, it will get you up and running with a central Mod Gearman Job server and two additional worker servers. You will then need to configure your workers to target their respective Nagios groups (/etc/mod_gearman/mod_gearman_worker.conf).
http://sites.box293.com/nagios/guides/mod-gearman
Also, here is some more documentation on Mod Gearman:
https://labs.consol.de/nagios/mod-gearman/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuring NSCA
It doesn't display in UI. does it?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Configuring NSCA
Could you please clarify this question a bit? What were you asking about specifically.It doesn't display in UI. does it?
Re: Configuring NSCA
Hi, I am able see worker nod in "gearman_top" view. But I don't understand hoe to distribute checks to worker node.
And also where to check received check result from worker node.
Please help.
And also where to check received check result from worker node.
Please help.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Configuring NSCA
Nagios is automatically using the worker node(s) to perform the checks, instead of Nagios doing the work.
A worker can be on the same server as the Nagios server, Nagios is just handing off the task to Mod Gearman.
When Nagios starts, if there is a line in nagios.cfg like this:
broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf
Then this is how Nagios is handing off the checks to Mod Gearman.
The workers check into to the Mod Gearman server and it hands the tasks to the workers.
And like I explained in a previous host, you can configure your workers to only perform checks for host/service objects if these objects are members of particular Nagios host/service groups.
So this way they workers can say "I'm only going to do checks for group_abc" and the Mod Gearman server will hand it only those checks.
Make sense?
A worker can be on the same server as the Nagios server, Nagios is just handing off the task to Mod Gearman.
When Nagios starts, if there is a line in nagios.cfg like this:
broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf
Then this is how Nagios is handing off the checks to Mod Gearman.
The workers check into to the Mod Gearman server and it hands the tasks to the workers.
And like I explained in a previous host, you can configure your workers to only perform checks for host/service objects if these objects are members of particular Nagios host/service groups.
So this way they workers can say "I'm only going to do checks for group_abc" and the Mod Gearman server will hand it only those checks.
Make sense?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.