gearman install

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mleo40
Posts: 37
Joined: Tue Jan 27, 2015 10:21 pm

gearman install

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: gearman install

Post by hsmith »

@box293 wrote a great guide that I have used before.

You can find it here.
Former Nagios Employee.
me.
mleo40
Posts: 37
Joined: Tue Jan 27, 2015 10:21 pm

Re: gearman install

Post 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?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: gearman install

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mleo40
Posts: 37
Joined: Tue Jan 27, 2015 10:21 pm

Re: gearman install

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: gearman install

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mleo40
Posts: 37
Joined: Tue Jan 27, 2015 10:21 pm

Re: gearman install

Post 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.
mleo40
Posts: 37
Joined: Tue Jan 27, 2015 10:21 pm

Re: gearman install

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: gearman install

Post 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.
Former Nagios Employee
Locked