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
gearman install
Re: gearman install
Former Nagios Employee.
me.
me.
Re: gearman install
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?
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
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: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?
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
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.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?
You've got it.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
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:
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:
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 --nodigesteven 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.rpmRe: gearman install
Interesting, I must have been wrong about the mod_gearmans dependencies. The following worked for me on CentOS 6:
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
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.rpmCode: Select all
yum install epel-releaseRe: gearman install
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.
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
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!
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
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