mod_gearman with XI 5?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

mod_gearman with XI 5?

Post by TBT »

Is anyone successfully using mod_gearman (v2.1.5) with XI 5 or have you experienced issues (If so, what are they)?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: mod_gearman with XI 5?

Post 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.
Nagios XI 5.8.1
https://outsideit.net
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: mod_gearman with XI 5?

Post 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.
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.
larrydhelms

Re: mod_gearman with XI 5?

Post 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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: mod_gearman with XI 5?

Post by WillemDH »

Seems I'm on v1.1.8. Works perfect with XI 5.
Nagios XI 5.8.1
https://outsideit.net
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: mod_gearman with XI 5?

Post 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
Last edited by TBT on Wed Nov 18, 2015 8:59 am, edited 1 time in total.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: mod_gearman with XI 5?

Post by WillemDH »

Good luck! Let us know how it works out for you. :)
Nagios XI 5.8.1
https://outsideit.net
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: mod_gearman with XI 5?

Post 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.
Former Nagios Employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: mod_gearman with XI 5?

Post 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
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: mod_gearman with XI 5?

Post 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.
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.
Locked