Page 1 of 1
Mod Gearman Install
Posted: Tue Dec 03, 2013 12:37 pm
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?
Re: Mod Gearman Install
Posted: Tue Dec 03, 2013 12:40 pm
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
Re: Mod Gearman Install
Posted: Tue Dec 03, 2013 12:49 pm
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
Re: Mod Gearman Install
Posted: Tue Dec 03, 2013 12:55 pm
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.
Re: Mod Gearman Install
Posted: Tue Dec 03, 2013 1:10 pm
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?
Re: Mod Gearman Install
Posted: Tue Dec 03, 2013 1:22 pm
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.