Nagiosxi + mod_gearman

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Nagiosxi + mod_gearman

Post by SDohmen »

Hello,

One of my co-workers decided it was time to put his google and thinking cap on and he found the plugin mod_gearman. In short this plugin makes distributed monitoring able to use passive checks because all are being forced from the central to the slaves instead of data passively being transfered to the main central.

My question in this is, did anyone ever try this plugin in a nagiosxi environment? Is this plugin type supported even? Perhaps tip and tricks when we are going to try this.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosxi + mod_gearman

Post by mguthrie »

I tried installing this a couple of months ago, but ran into issues with the libgearman packages being in conflict. DNX does most of the same stuff, and we've already got that tested and documented if you're interested.
http://library.nagios.com/library/produ ... ith-nagios
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Nagiosxi + mod_gearman

Post by SDohmen »

The documentation you have provided looks interesting but i do have some questions:

1. Which ports need to be opened to get it to work

2. Is it possible to have specific check goto specific hostgroups/workers. For example for 1 customer i want to force the check but how does the dnx server know it has to go to that particular slave.

3. If i read the documentation right the installation that is there is only for nagiosxi. Is there some documentation regarding installing the client part on a core machine.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosxi + mod_gearman

Post by mguthrie »

1. Which ports need to be opened to get it to work
Here's the firewall rule set by the install script

Code: Select all

iptables -I INPUT -p udp --dport 12480:12482 -j ACCEPT
2. Is it possible to have specific check goto specific hostgroups/workers. For example for 1 customer i want to force the check but how does the dnx server know it has to go to that particular slave.
No, to my knowledge DNX does not do this, but Mod Gearman can.
3. If i read the documentation right the installation that is there is only for nagiosxi. Is there some documentation regarding installing the client part on a core machine.
The DNX doc will also work for a source install of Core. Just make sure the necessary plugins you need are also on the slave machines.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Nagiosxi + mod_gearman

Post by SDohmen »

Thanks for listing the ports.

Regarding question 2 though. If i have it right, i have to configure the central to be the master and the rest as slaves. What makes me wonder then is when i have a check for ping and i want to force it for host a which is on customers a network, what happens to host b which is on customers b network. Even the hosts om the same network as host a is. Do all hosts get a force check or still only that one? I know that this will only happen for that particular host with mod_gearman but that wasn't supported and gave errors while you tried it.

Regarding question 3. We use the apt-get installer. Since you used bold to specify the source installer does that mean it wont work on the apt-get installer?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosxi + mod_gearman

Post by mguthrie »

What makes me wonder then is when i have a check for ping and i want to force it for host a which is on customers a network, what happens to host b which is on customers b network. Even the hosts om the same network as host a is. Do all hosts get a force check or still only that one?
Don't know on this one, this would be more of a question for the developers for DNX or Mod Gearman.
We use the apt-get installer. Since you used bold to specify the source installer does that mean it wont work on the apt-get installer?
Our quick-install script will not work with an apt install. DNX will work with an apt install, but you'll just have to set it up manually, according to their documentation.
Locked