Page 1 of 2

mod_gearman with XI 5?

Posted: Tue Nov 17, 2015 3:26 pm
by TBT
Is anyone successfully using mod_gearman (v2.1.5) with XI 5 or have you experienced issues (If so, what are they)?

Re: mod_gearman with XI 5?

Posted: Tue Nov 17, 2015 3:56 pm
by WillemDH
We have one mod gearman worker node (running all our mrtg checks) running successfully with XI 5. I'm not 100 % sure what version it is. I'll check tomorrow.

Re: mod_gearman with XI 5?

Posted: Tue Nov 17, 2015 4:53 pm
by jolson
Is anyone successfully using mod_gearman (v2.1.5) with XI 5 or have you experienced issues (If so, what are they)?
I have dealt with several customers running various versions of mod_gearman - our official recommendation is version 1.5.0, but I have had plenty of success with version 2.1.2 as well. Assuming that 2.1.5 isn't significantly different, i don't imagine you'll have problems.

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 8:40 am
by larrydhelms
Their insturctions for Nagios 4, include downloading a shell script that upgrades/installs mod_gearman components however, the upgrade instructions for NagiosXI 5, and the mod_gearman instructions from Nagios Enterprises LLC, don't include instructions on how to install/upgrade mod_gearman that is compatible with XI 5.

Any help on how to do that would be MOST appreciated!

Thanks,
Larr.

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 8:47 am
by WillemDH
Seems I'm on v1.1.8. Works perfect with XI 5.

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 8:54 am
by TBT
jolson wrote:
Is anyone successfully using mod_gearman (v2.1.5) with XI 5 or have you experienced issues (If so, what are they)?
I have dealt with several customers running various versions of mod_gearman - our official recommendation is version 1.5.0, but I have had plenty of success with version 2.1.2 as well. Assuming that 2.1.5 isn't significantly different, i don't imagine you'll have problems.
We're currently at v1.4 and experiencing an issue with embedded Perl (error below) & ESXi checks. Will try upgrading to mod_gearman 1.5 and then current stable (v2.1.5) if issue remains.

Code: Select all

**ePN /usr/local/nagios/libexec/check_esx3.pl: plugin did not call exit()\n**ePN /usr/local/nagios/libexec/check_esx3.pl: "Use of uninitialized value $opt in string eq at /usr/share/perl5/Getopt/Long.pm line 487,".\n

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 8:55 am
by WillemDH
Good luck! Let us know how it works out for you. :)

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 10:59 am
by rkennedy
As @WilliemDH mentioned - let us know the result of your upgrade and if you need more assistance. I will leave this thread open.

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 2:15 pm
by SteveBeauchemin
For @jolson - you have setup Mod_Gearman 2.1.2 ?

Did you use the repo and yum install it? CentOS 6 or 7?

Did you get source and compile?

Was there any challenge or did it just go in place nicely?

Please advise. I am very interested in any words of wisdom.

Thanks

Steve B

Re: mod_gearman with XI 5?

Posted: Wed Nov 18, 2015 2:42 pm
by jolson
Steve,

Here's a script that I've used with success to install mod_gearman:

Code: Select all

if [[ $EUID -ne 0 ]]; then
        echo "This script must be run as root" 1>&2
        exit 1
fi
yum install -y gcc autoconf automake libtool gcc-c++ libevent-devel libtool-ltdl libtool-ltdl-devel  ncurses-devel e2fsprogs-devel boost-devel boost-program-options libevent perl
wget http://mod-gearman.org/download/v2.1.2/rhel6/x86_64/gearmand-0.33-2.rhel6.x86_64.rpm
wget http://mod-gearman.org/download/v2.1.2/rhel6/x86_64/gearmand-devel-0.33-2.rhel6.x86_64.rpm
wget http://mod-gearman.org/download/v2.1.2/rhel6/x86_64/gearmand-server-0.33-2.rhel6.x86_64.rpm
wget http://mod-gearman.org/download/v2.1.2/rhel6/x86_64/mod_gearman2-2.1.2-1.rhel6.x86_64.rpm
rpm -ivh gearmand-0.33-2.rhel6.x86_64.rpm
rpm -ivh gearmand-devel-0.33-2.rhel6.x86_64.rpm
rpm -ivh gearmand-server-0.33-2.rhel6.x86_64.rpm
rpm -ivh mod_gearman2-2.1.2-1.rhel6.x86_64.rpm
exit 0
You'll also need to enable the NEB module - it should look something like this (modify nagios.cfg and add this line to the bottom):

Code: Select all

broker_module=/usr/lib64/mod_gearman2/mod_gearman2.o server=localhost eventhandler=no hosts=yes services=yes config=/etc/mod_gearman2/module.conf
Restart your services:

Code: Select all

service gearmand start
/etc/init.d/mod-gearman2-worker
service nagios restart
That's all she wrote! Let me know if the above procedure works for you - it worked on my lab box.

EDIT: fixed a few config typos.