Page 1 of 1

gearman install

Posted: Wed Nov 04, 2015 6:09 pm
by mleo40
I am struggling with the gearman install on my RH 6 server.

I have searched the forums but I don't have access to some possible topics:
https://support.nagios.com/forum/viewto ... 16&t=22300
https://support.nagios.com/forum/viewto ... 16&t=34803

I'm confused why this is so difficult, which makes me think I'm doing something terrible stupid.

Any guidance or access to topics would be helpful!

Thanks
mike

Re: gearman install

Posted: Wed Nov 04, 2015 6:12 pm
by hsmith
@box293 wrote a great guide that I have used before.

You can find it here.

Re: gearman install

Posted: Mon Nov 09, 2015 11:50 am
by mleo40
Can you clarify a point or two?

First, most instructions seem to depend on gearmand, mod_gearman and libgearman to be in my RH channels's, which they are not, and I have access to nearly all the RH channels in existence. Do you know the current state of this package and it's relationship with Redhat?

I'm confused why the workers (mod_gearman) require the gearmand service on the same host. Aren't the worker bees (mod_gearman) all going to point back to my gearmand instance on my nagios server?

Perhaps it's just a naming convention that's confusing me, but I imagine I'd have 1 gearmand server on the nagios host, and several mod_gearman workers connecting back to it...right?

Re: gearman install

Posted: Mon Nov 09, 2015 12:01 pm
by jolson
First, most instructions seem to depend on gearmand, mod_gearman and libgearman to be in my RH channels's, which they are not, and I have access to nearly all the RH channels in existence. Do you know the current state of this package and it's relationship with Redhat?
I do not believe this package has any official relationship with Red Hat. In the mod_gearman installation instructions, it's worth noting that you'll have to download a Nagios contructed rpm and run a yum install against it. See the following document for explicit detail:
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
I'm confused why the workers (mod_gearman) require the gearmand service on the same host. Aren't the worker bees (mod_gearman) all going to point back to my gearmand instance on my nagios server?
In short, you only need one instance of gearmand - this will be running on your Nagios Server. All of your worker bees should _not_ need gearmand installed in order to operate properly.
Perhaps it's just a naming convention that's confusing me, but I imagine I'd have 1 gearmand server on the nagios host, and several mod_gearman workers connecting back to it...right?
You've got it.
2015-11-09-110100_443x285_scrot.png

Re: gearman install

Posted: Mon Nov 09, 2015 12:09 pm
by mleo40
This is what is confusing me...this seems to mean that mod_gearman needs gearmand installed on the same box....right?

On a potential worker-bee:

Code: Select all

# yum localinstall --nogpgcheck mod_gearman-1.5.0b1-1.el6.x86_64.rpm 
Loaded plugins: rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining mod_gearman-1.5.0b1-1.el6.x86_64.rpm: mod_gearman-1.5.0b1-1.el6.x86_64
Marking mod_gearman-1.5.0b1-1.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mod_gearman.x86_64 0:1.5.0b1-1.el6 will be installed
--> Processing Dependency: gearmand for package: mod_gearman-1.5.0b1-1.el6.x86_64
--> Processing Dependency: libgearman.so.8()(64bit) for package: mod_gearman-1.5.0b1-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: mod_gearman-1.5.0b1-1.el6.x86_64 (/mod_gearman-1.5.0b1-1.el6.x86_64)
           Requires: libgearman.so.8()(64bit)
Error: Package: mod_gearman-1.5.0b1-1.el6.x86_64 (/mod_gearman-1.5.0b1-1.el6.x86_64)
           Requires: gearmand
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

even the script in the pdf you shared (which is great as I've not seen that before) indicates it is installing gearmand on the workers.
This is a snippet from the script:

Code: Select all

yum --nogpgcheck -y install gearmand-server-0.25-1.rhel$version.$arch.rpm

Re: gearman install

Posted: Mon Nov 09, 2015 4:31 pm
by jolson
Interesting, I must have been wrong about the mod_gearmans dependencies. The following worked for me on CentOS 6:

Code: Select all

wget http://assets.nagios.com/downloads/mod_gearman/rpms/mod_gearman-1.5.0b1-1.el6.x86_64.rpm
yum install mod_gearman-1.5.0b1-1.el6.x86_64.rpm
You will need access to the epel repository for the 'libgearman' and the 'gearmand' packages. Typically you can set up epel like so:

Code: Select all

yum install epel-release

Re: gearman install

Posted: Mon Nov 09, 2015 8:35 pm
by mleo40
I agree...the packages are in the epel repos and are all dependant on each other.

I am going to try and install everything, then turn off gearmand and see if mod_gearman will connect to my nagios/gearman on another server without the local gearmand running. I'll report back if anyone is interested.

Re: gearman install

Posted: Mon Nov 09, 2015 10:13 pm
by mleo40
For the record:

added epel to my nagios server, followed the link'd guide and yum installed mod_gearman+ on the nagios server, disabled mod_gearman_worker, left nagios and gearmand running.

added epel to my worker server, followed the link'd guide and yum installed mod_gearman+ on it, disabled gearmand and pointed mod_gearman_worker to my nagios server and all is working as expected.

Thanks for all the guidance!

Re: gearman install

Posted: Tue Nov 10, 2015 10:13 am
by rkennedy
Glad to see this worked for you! As this is resolved, I will now close this thread out. If you need more assistance in the future feel free to open another thread.