Strange issue with Nagios stopping

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
delboy1966
Posts: 94
Joined: Thu Oct 22, 2015 5:26 am

Re: Strange issue with Nagios stopping

Post by delboy1966 »

No I haven't seen anything in the logs.
But I am willing to try your solution on my return.

What mod_gearman version did you use and does in stall the gearmand deamon also?
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

Re: Strange issue with Nagios stopping

Post by danjoh »

I am using mod_gearman 3.0.5 as "base" before patching with the Nagios 4.3.4 headers (there were also a Nagios-header change between 4.3.2 and 4.3.4).
gearmand is version 0.33 (from labs.consol.de).
--
D/\N
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Strange issue with Nagios stopping

Post by lmiltchev »

@delboy1966, let us know if you have any more questions/issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
delboy1966
Posts: 94
Joined: Thu Oct 22, 2015 5:26 am

Re: Strange issue with Nagios stopping

Post by delboy1966 »

Trying to recompile mod_gearman using the headers from Nagios 4.
I get

configure: error: Compiling Mod-Gearman requires ltdl.h

Any ideas?
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

Re: Strange issue with Nagios stopping

Post by danjoh »

Do you have installed "libtool-ltdl-devel"?

According to the .spec-file the following packages are needed to build mod_gearman:
BuildRequires: autoconf, automake, ncurses-devel
BuildRequires: libtool, libtool-ltdl-devel, libevent-devel
BuildRequires: gearmand-devel
--
D/\N
delboy1966
Posts: 94
Joined: Thu Oct 22, 2015 5:26 am

Re: Strange issue with Nagios stopping

Post by delboy1966 »

No I didn't have it installed.

Installed that and other required packages and now get an error on make

# make
make all-am
make[1]: Entering directory `/tmp/mod_gearman-3.0.5'
CC common/base64.o
CC common/gm_crypt.o
CC common/rijndael.o
CC common/gearman_utils.o
common/gearman_utils.c: In function âadd_job_to_queueâ:
common/gearman_utils.c:149: error: âGEARMAN_MAX_UNIQUE_SIZEâ undeclared (first use in this function)
common/gearman_utils.c:149: error: (Each undeclared identifier is reported only once
common/gearman_utils.c:149: error: for each function it appears in.)
make[1]: *** [common/gearman_utils.o] Error 1
make[1]: Leaving directory `/tmp/mod_gearman-3.0.5'
make: *** [all] Error 2
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

Re: Strange issue with Nagios stopping

Post by danjoh »

Did you re-run ./configure ...?
And are you sure gearmand-devel is installed (gearmand-devel installs /usr/include/libgearman-1.0/limits.h which contains "#define GEARMAN_MAX_UNIQUE_SIZE 64")?
--
D/\N
delboy1966
Posts: 94
Joined: Thu Oct 22, 2015 5:26 am

Re: Strange issue with Nagios stopping

Post by delboy1966 »

That was already installed:

# rpm -qa | grep gearmand-devel
gearmand-devel-0.25-1.x86_64

# ls -l /usr/include/libgearman-1.0
total 172
-rw-r--r-- 1 root root 2066 Sep 24 2012 actions.h
-rw-r--r-- 1 root root 1861 Sep 24 2012 aggregator.h
-rw-r--r-- 1 root root 1832 Sep 24 2012 allocator.h
-rw-r--r-- 1 root root 2008 Sep 24 2012 argument.h
-rw-r--r-- 1 root root 2416 Sep 24 2012 client_callbacks.h
-rw-r--r-- 1 root root 27230 Sep 24 2012 client.h
-rw-r--r-- 1 root root 1790 Sep 24 2012 configure.h
-rw-r--r-- 1 root root 2451 Sep 24 2012 connection.h
-rw-r--r-- 1 root root 6123 Sep 24 2012 constants.h
-rw-r--r-- 1 root root 350 Sep 24 2012 core.h
-rw-r--r-- 1 root root 2822 Sep 24 2012 execute.h
-rw-r--r-- 1 root root 3136 Sep 24 2012 function.h
-rw-r--r-- 1 root root 2965 Sep 24 2012 gearman.h
-rw-r--r-- 1 root root 6049 Sep 24 2012 job.h
-rw-r--r-- 1 root root 1774 Sep 24 2012 job_handle.h
-rw-r--r-- 1 root root 2380 Sep 24 2012 packet.h
-rw-r--r-- 1 root root 2340 Sep 24 2012 parse.h
-rw-r--r-- 1 root root 2037 Sep 24 2012 priority.h
-rw-r--r-- 1 root root 2916 Sep 24 2012 protocol.h
-rw-r--r-- 1 root root 2859 Sep 24 2012 result.h
-rw-r--r-- 1 root root 4156 Sep 24 2012 return.h
-rw-r--r-- 1 root root 421 Sep 24 2012 strerror.h
-rw-r--r-- 1 root root 2266 Sep 24 2012 string.h
-rw-r--r-- 1 root root 2912 Sep 24 2012 task_attr.h
-rw-r--r-- 1 root root 6983 Sep 24 2012 task.h
-rw-r--r-- 1 root root 2744 Sep 24 2012 universal.h
-rw-r--r-- 1 root root 2113 Sep 24 2012 util.h
-rw-r--r-- 1 root root 1798 Sep 24 2012 version.h
-rw-r--r-- 1 root root 1873 Sep 24 2012 visibility.h
-rw-r--r-- 1 root root 16378 Sep 24 2012 worker.h


It doesn't have that file in the directory.
If I try to do a yum update on it there is no updated package available.

Tony
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

Re: Strange issue with Nagios stopping

Post by danjoh »

I am using:
$ rpm -qa | grep gearmand
gearmand-0.33-6.x86_64
gearmand-server-0.33-6.x86_64
gearmand-devel-0.33-6.x86_64

All from labs.consol.de (https://labs.consol.de/repo/stable/rhel7/x86_64/)
You probably have to change the "rhel7" to your distro/release.
--
D/\N
delboy1966
Posts: 94
Joined: Thu Oct 22, 2015 5:26 am

Re: Strange issue with Nagios stopping

Post by delboy1966 »

I now have it all installed

A bit unsure about the nagios.cfg line as I can't find anything in the docs about that.
The install doesn't seem to have moved the modules from neb_module_nagios4:

mod_gearman.o
result_thread.o

Do I have to move them somewhere?

Tony
Locked