Bryan,
Luckily I tried this on my Nagios QA server today. This means it was a fresh install of gearman 2.1.5. I followed your recommendations and also tried the guide of Steve. Installation of gearman2 seemed to work ok. But when I try to restart the nagios service it fails. I'm unable at the moment to get the nagios service to start on my QA Nagios server.
Code: Select all
root@vnagiosqa:~ # service mod-gearman2-worker start [16-02-12 13:23:41]
Starting mod_gearman2_worker...OK
root@snagiosqa:~ # service gearmand start [16-02-12 13:23:46]
Starting gearmand: [ OK ]
root@nagiosqa:~ # service nagios start [16-02-12 13:23:51]
Starting nagios: done.
root@nagiosqa:~ # service nagios status [16-02-12 13:23:56]
nagios is not running
When I comment the
Code: Select all
broker_module=/usr/lib64/mod_gearman2/mod_gearman2.o config=/etc/mod_gearman2/module.conf
I can start the nagios service again.
Going to investigate further. Please let me know if you have an idea what could be the reason.
I can see this in the /var/log/messages
Code: Select all
Feb 12 13:23:28 nagiosqa nagios: Caught SIGTERM, shutting down...
Feb 12 13:23:28 nagiosqa nagios: Successfully shutdown... (PID=5262)
Feb 12 13:23:28 nagiosqa nagios: Event broker module 'NERD' deinitialized successfully.
Feb 12 13:23:28 nagiosqa nagios: ndomod: Shutdown complete.
Feb 12 13:23:28 nagiosqa nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
Feb 12 13:23:56 nagiosqa nagios: Nagios 4.1.1 starting... (PID=31583)
Feb 12 13:23:56 nagiosqa nagios: Local time is Fri Feb 12 13:23:56 CET 2016
Feb 12 13:23:56 nagiosqa nagios: LOG VERSION: 2.0
Feb 12 13:23:56 nagiosqa nagios: qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Feb 12 13:23:56 nagiosqa nagios: qh: core query handler registered
Feb 12 13:23:56 nagiosqa nagios: nerd: Channel hostchecks registered successfully
Feb 12 13:23:56 nagiosqa nagios: nerd: Channel servicechecks registered successfully
Feb 12 13:23:56 nagiosqa nagios: nerd: Channel opathchecks registered successfully
Feb 12 13:23:56 nagiosqa nagios: nerd: Fully initialized and ready to rock!
Feb 12 13:23:56 nagiosqa nagios: wproc: Successfully registered manager as @wproc with query handler
Feb 12 13:23:56 nagiosqa nagios: wproc: Registry request: name=Core Worker 31588;pid=31588
Feb 12 13:23:56 nagiosqa nagios: wproc: Registry request: name=Core Worker 31587;pid=31587
Feb 12 13:23:56 nagiosqa nagios: wproc: Registry request: name=Core Worker 31586;pid=31586
Feb 12 13:23:56 nagiosqa nagios: wproc: Registry request: name=Core Worker 31585;pid=31585
Feb 12 13:23:56 nagiosqa nagios: Error: Could not load module '/usr/lib64/mod_gearman2/mod_gearman2.o' -> /usr/lib64/mod_gearman2/mod_gearman2.o: undefined symbol: nm_log
Feb 12 13:23:56 nagiosqa nagios: Error: Failed to load module '/usr/lib64/mod_gearman2/mod_gearman2.o'.
Feb 12 13:23:56 nagiosqa nagios: ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Feb 12 13:23:56 nagiosqa nagios: ndomod: Successfully connected to data sink. 0 queued items to flush.
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for process data
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for log data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for system command data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for event handler data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for notification data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for comment data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for downtime data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for flapping data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for program status data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for host status data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for service status data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for adaptive program data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for adaptive host data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for adaptive service data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for external command data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for aggregated status data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for retention data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for contact data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for contact notification data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for acknowledgement data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for state change data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for contact status data'
Feb 12 13:23:56 nagiosqa nagios: ndomod registered for adaptive contact data'
Feb 12 13:23:56 nagiosqa nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
Feb 12 13:23:56 nagiosqa nagios: Error: Module loading failed. Aborting.
I tried setting debug = 2 in /etc/mod_gearman2/module.conf but nothing appeared in /var/log/mod_gearman2/mod_gearman_neb.log
EDIT: Tried again with the 2.1.2-1 and this version seems to work ok on my Nagios QA server. 2.1.5-1 is not working however..
Next problem: it seems i'm unable to install the gearmand package on my CentOS 7 worker node..
Code: Select all
yum deplist gearmand-server-0.33-2.rhel6.x86_64.rpm | awk '/provider:/ {print $2}' | sort -u
bash.x86_64
boost-program-options.i686
boost-program-options.x86_64
glibc.i686
glibc.x86_64
libevent.i686
libevent.x86_64
libgcc.x86_64
libstdc++.x86_64
[root@nagext gearman_install]# yum install boost-program-options.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.nucleus.be
* epel: epel.mirror.nucleus.be
* extras: centos.mirror.nucleus.be
* updates: centos.mirror.nucleus.be
Package boost-program-options-1.53.0-25.el7.x86_64 already installed and latest version
Nothing to do
[root@nagext gearman_install]# yum install ./gearmand-0.33-2.rhel6.x86_64.rpm
Loaded plugins: fastestmirror
Examining ./gearmand-0.33-2.rhel6.x86_64.rpm: 1:gearmand-0.33-2.x86_64
Marking ./gearmand-0.33-2.rhel6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package gearmand.x86_64 1:0.33-2 will be installed
--> Processing Dependency: libboost_program_options-mt.so.5()(64bit) for package: 1:gearmand-0.33-2.x86_64
Loading mirror speeds from cached hostfile
* base: centos.mirror.nucleus.be
* epel: epel.mirror.nucleus.be
* extras: centos.mirror.nucleus.be
* updates: centos.mirror.nucleus.be
--> Finished Dependency Resolution
Error: Package: 1:gearmand-0.33-2.x86_64 (/gearmand-0.33-2.rhel6.x86_64)
Requires: libboost_program_options-mt.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@nagext gearman_install]# yum --nogpgcheck localinstall gearmand-
gearmand-0.33-2.rhel6.x86_64.rpm gearmand-devel-0.33-2.rhel6.x86_64.rpm gearmand-server-0.33-2.rhel6.x86_64.rpm
[root@nagext gearman_install]# yum --nogpgcheck localinstall gearmand-0.33-2.rhel6.x86_64.rpm
Loaded plugins: fastestmirror
Examining gearmand-0.33-2.rhel6.x86_64.rpm: 1:gearmand-0.33-2.x86_64
Marking gearmand-0.33-2.rhel6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package gearmand.x86_64 1:0.33-2 will be installed
--> Processing Dependency: libboost_program_options-mt.so.5()(64bit) for package: 1:gearmand-0.33-2.x86_64
Loading mirror speeds from cached hostfile
* base: centos.mirror.nucleus.be
* epel: epel.mirror.nucleus.be
* extras: centos.mirror.nucleus.be
* updates: centos.mirror.nucleus.be
--> Finished Dependency Resolution
Error: Package: 1:gearmand-0.33-2.x86_64 (/gearmand-0.33-2.rhel6.x86_64)
Requires: libboost_program_options-mt.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@nagext gearman_install]# yum install boost-program-options.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.nucleus.be
* epel: epel.mirror.nucleus.be
* extras: centos.mirror.nucleus.be
* updates: centos.mirror.nucleus.be
Package boost-program-options-1.53.0-25.el7.x86_64 already installed and latest version
Nothing to do
What package do I need to be able to install the required gearman2 packages? Got these errors:
Code: Select all
Error: Package: 1:gearmand-server-0.33-2.x86_64 (/gearmand-server-0.33-2.rhel6.x86_64)
Requires: libboost_program_options-mt.so.5()(64bit)
Error: Package: 1:gearmand-0.33-2.x86_64 (/gearmand-0.33-2.rhel6.x86_64)
Requires: libboost_program_options-mt.so.5()(64bit)
Error: Package: 1:gearmand-server-0.33-2.x86_64 (/gearmand-server-0.33-2.rhel6.x86_64)
Requires: libevent-1.4.so.2()(64bit)
Grtz