Page 1 of 2

Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 10:46 am
by mrochelle
I've updated to Nagios XI 2014R1.0RC2 in my dev environment and love the interface, features, and can't say enough good things about it. I'm looking forward to the production release.
I removed mod_gearman and reinstall via the ModGearmanFullinstallVersion.sh --server command.
Once I restart nagios, following is the error:
Apr 23 10:11:11 nagiosdeva nagios: wproc: Registry request: name=Core Worker 2560;pid=2560
Apr 23 10:11:11 nagiosdeva nagios: wproc: Registry request: name=Core Worker 2561;pid=2561
Apr 23 10:11:11 nagiosdeva nagios: wproc: Registry request: name=Core Worker 2559;pid=2559
Apr 23 10:11:11 nagiosdeva nagios: wproc: Registry request: name=Core Worker 2558;pid=2558
Apr 23 10:11:11 nagiosdeva nagios: Error: Could not load module '/usr/lib64/mod_gearman/mod_gearman.o' -> /usr/lib64/mod_gearman/mod_gearman.o: undefined symbol: check_result_list
Apr 23 10:11:11 nagiosdeva nagios: Error: Failed to load module '/usr/lib64/mod_gearman/mod_gearman.o'.
.
.
.
Apr 23 10:11:11 nagiosdeva nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
Apr 23 10:11:11 nagiosdeva nagios: Error: Module loading failed. Aborting.

So it appears, I need an updated version of mod_gearman?

____________________________

Nagios XI Installation Profile
Download Profile

System:
Nagios XI Version : 2014R1.0RC2
nagiosdeva.name.com 2.6.32-279.5.1.el6.x86_64 x86_64
CentOS release 6.3 (Final)
Gnome is not installed

Apache Information
PHP Version: 5.3.3
Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; AskTbORJ/5.15.9.29495)
Server Name: 192.168.x.x
Server Address: 192.168.x.x
Server Port: 80

Date/Time
PHP Timezone: America/Chicago
PHP Time: Wed, 23 Apr 2014 10:15:17 -0500
System Time: Wed, 23 Apr 2014 10:15:17 -0500

Nagios XI Data
License ends in: xxxx

nagios is not running
NPCD running (pid 1967).
ndo2db (pid 16060) is running...
CPU Load 15: 0.12
Total Hosts: 14
Total Services: 47
Function 'get_base_uri' returns: http://192.x.x.x/nagiosxi/
Function 'get_base_url' returns: http://192.x.x.x/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://192.x.x.x/nagiosxi/includes/comp ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/

Ping Test localhost
Running: /bin/ping -c 3 localhost 2>&1
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.029 ms
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
____________________________________________

19 Nagios XI production servers.
08 Nagios XI server: Qty 2 (04 Nagios XI servers in Master + 3 worker) configuration running mod_gearman with livestatus

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 11:06 am
by sreinhardt
I do believe you are going to want the core4 branch found on github: https://github.com/sni/mod_gearman/tree/nagios4

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 12:26 pm
by mrochelle
THANK YOU!
I downloaded the package " mod_gearman-1.4_.rhel6.x86_64.rpm " since the other packages are the same. I ran " yum --nogpgcheck install mod_gearman-1.4_.rhel6.x86_64.rpm " which updated mod_gearman-1.3.8-1.e.rhel6.x86_64 to mod_gearman-1.4_nagios4-1.el6.x86_64.
Apr 23 12:16:22 nagiosdeva nagios: mod_gearman: initialized version 1.4_nagios4 (libgearman 0.25)
Apr 23 12:16:22 nagiosdeva nagios: Event broker module '/usr/lib64/mod_gearman/mod_gearman.o' initialized successfully.
Apr 23 12:16:22 nagiosdeva nagios: ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors

Mod_gearman is now fully functional.
If you have any tips for mk livestatus, I would appreciate it!
I'm using the mk-livestatus 1.2.5i2 version with configure --with-nagios4

Apr 23 12:32:20 nagiosdeva nagios: Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/lib/mk-livestatus/livestatus.o: undefined symbol: last_command_check
Apr 23 12:32:20 nagiosdeva nagios: Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 12:34 pm
by BanditBBS
mrochelle,

Did you have to do anything to your workers or just the XI server? I don't have gearman in my dev environment :(

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 12:40 pm
by mrochelle
Actually, I have not done anything with the workers but I'm planning to update those boxes to Nagios XI 2014R1.0RC2 and mod_gearman this afternoon if everything else remains quiet.

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 1:21 pm
by mrochelle
Just a quick update reference my mk-livestatus comments.
Actually Scottwilkerson had a prior post with a version that will work.
cd /tmp
wget http://mathias-kettner.com/download/mk- ... 2.4.tar.gz
tar xzf mk-livestatus-1.2.4.tar.gz
cd mk-livestatus-1.2.4
./configure --with-nagios4
make
make install

Nagios XI 2014R1.0RC2 is fully functional on my configuration. I'm taking this Friday off to celebrate. :D

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 1:25 pm
by BanditBBS
Now to decide if your testing is good enough for me :roll:

I have about 10 workers connected to the one XI server, so if all I have to do it reinstall gearman on XI once we update to 2014, that is nice and easy :)

EDIT: I of course mean after it is out of beta!

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 2:37 pm
by mrochelle
I believe that's all you really need to do. I completed updating my workers to Nagios XI 2014R1.0RC2 for consistency only. I did not have to touch the mod_gearman worker configurations. :geek:

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 2:49 pm
by slansing
I agree, the only change necessary should be on the gearman server a.k.a XI. The commands being pushed to the workers should stay constant, at least at this point. Further investigation will need to be done by myself or another team member that works on gearman integration in the future if this is changed but you should be good to go. Remote workers with core 4 are still in the process of being ported over and that *should* be a viable alternative as well.

Re: Nagios XI 2014R1.0RC2 and Mod_Gearman

Posted: Wed Apr 23, 2014 2:56 pm
by mrochelle
I'm looking forward to the remote core 4 worker capability. If it meets or hopefully exceeds mod_gearman performance, that will be impressive. Will the remote core 4 worker capability be included before the 2014 production release?