Mod Gearman Install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Mod Gearman Install

Post by costanza2k1 »

Needing a bit of guidance here. I followed the procedures to install Mod Gearman: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

I have an XI build in dev with just local host monitored. Successfully installed Mod Gearman on the server and changed the keyfile as well. I have another server, Nagios Core, monitoring 1 server and a few services. Installed Mod Gearman and changed the keyfile as well. When running gearman_top on the core system I get the following:

2013-12-03 09:37:12 - localhost:4730

failed to connect to localhost:4730 - Connection refused

Any thoughts on what I should do?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Mod Gearman Install

Post by sreinhardt »

We could probably start with checking to be sure mod gearman service is started, and bound to the port.

Code: Select all

service gearmand status
service mod_gearman_worker status
netstat -nop | grep 4730
iptables -L
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Mod Gearman Install

Post by costanza2k1 »

When I installed Mod Gearman on my worker I only did the worker installation not the server:
Worker Installation
Note: This step is completed on the remote worker system(s):
cd /tmp
wget http://assets.nagios.com/downloads/nagi ... Version.sh
chmod +x ModGearmanFullinstallVersion.sh
./ModGearmanFullinstallVersion.sh
When you see “What is the IP address of your Nagios master server?”
Type your Master Nagios IP then press Enter.
XXX.XXX.XXX.XXX

Code: Select all

-sh-4.1$ service gearmand status
gearmand: unrecognized service

-sh-4.1$ service mod_gearman_worker status
mod_gearman_worker is running with pid 8441


-sh-4.1$ sudo netstat -nop | grep 4730
tcp        0      1 10.99.104.32:52264          10.99.104.31:4730           SYN_SENT    9344/mod_gearman_wo on (0.73/0/0)
tcp        0      1 10.99.104.32:52250          10.99.104.31:4730           SYN_SENT    9339/mod_gearman_wo on (2.63/3/0)
tcp        0      1 10.99.104.32:52255          10.99.104.31:4730           SYN_SENT    9340/mod_gearman_wo on (6.64/3/0)
tcp        0      1 10.99.104.32:52251          10.99.104.31:4730           SYN_SENT    9343/mod_gearman_wo on (2.64/3/0)
tcp        0      1 10.99.104.32:52249          10.99.104.31:4730           SYN_SENT    9341/mod_gearman_wo on (2.63/3/0)
tcp        0      1 10.99.104.32:52248          10.99.104.31:4730           SYN_SENT    9342/mod_gearman_wo on (2.63/3/0)

-sh-4.1$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Mod Gearman Install

Post by sreinhardt »

So are you attempting to have nagios connect to a worker instance directly? Generally speaking the gearman workers only communicate with the gearmand server(whether local or remote), and the nagios engines speak with that same service. So nagios daemons never directly interact with workers. I just want to be sure that is not what you are attempting to do, as it likely would not work.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: Mod Gearman Install

Post by costanza2k1 »

Ok I may have not understood correctly. I want to have a series of Nagios Core Servers monitor production servers and feed their results over to Nagios XI...is that not the right way to do it?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Mod Gearman Install

Post by slansing »

In that case you can use NSCA to push the results up to Nagios XI, Mod Gearman is more of a load balancer, and perfdata/check offloader. See this link:

http://www.openlogic.com/wazi/bid/188134/

You would essentially slave your nagios core server's NSCA daemon to the XI server. You will need to enable Inbound NSCA results through Admin > Inbound Transfers > NSCA.
Locked