Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

112 lines (88 sloc) 3.326 kb
Name: mod_gearman
Version: 1.3.8
Release: 1%{?dist}
License: GNU Public License version 2
Packager: Sven Nierlein <>
Vendor: Labs Consol
Source0: mod_gearman-%{version}.tar.gz
Group: Applications/Monitoring
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
BuildRequires: autoconf, automake, ncurses-devel
BuildRequires: libtool, libtool-ltdl-devel, libevent-devel
BuildRequires: gearmand-devel
Summary: Gearman module for Icinga/Nagios
Requires(pre,post): /sbin/ldconfig
Requires(pre): shadow-utils
Requires: gearmand, perl
Provides: mod_gearman
Mod Gearman is a new way of distributing active Nagios/Icinga
checks across your network. It consists of two parts: There is
a NEB module which resides in the Nagios/Icinga core and adds
servicechecks, hostchecks and eventhandler to a Gearman queue.
There can be multiple equal gearman servers. The counterpart
is one or more worker clients for the checks itself. They can
be bound to host and servicegroups.
%setup -q
[ -f ./configure ] || ./
%configure \
--datadir="%{_datadir}" \
--datarootdir="%{_datadir}" \
--localstatedir="%{_localstatedir}" \
--sysconfdir="%{_sysconfdir}/mod_gearman" \
--with-init-dir="%{_initrddir}" \
%{__make} %{_smp_mflags}
%{__rm} -rf %{buildroot}
%{__make} install \
install-config \
DESTDIR="%{buildroot}" \
# remove custom gearmand initscript
%{__rm} -f %{buildroot}/%{_initrddir}/gearmand
getent group nagios >/dev/null || groupadd -r nagios
getent passwd nagios >/dev/null || \
useradd -r -g nagios -d %{_localstatedir}/mod_gearman -s /sbin/nologin \
-c "nagios user" nagios
exit 0
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%{__rm} -rf %{buildroot}
%attr(755,root,root) %{_initrddir}/mod_gearman_worker
%config(noreplace) %{_sysconfdir}/mod_gearman/mod_gearman_neb.conf
%config(noreplace) %{_sysconfdir}/mod_gearman/mod_gearman_worker.conf
%attr(755,nagios,root) %{_localstatedir}/mod_gearman
%attr(755,nagios,root) %{_localstatedir}/log/mod_gearman
%docdir %{_defaultdocdir}
* Fri Apr 06 2012 Sven Nierlein <>
- added gearman_proxy to package
* Thu Jan 19 2012 Sven Nierlein <>
- enabled embedded Perl
* Mon Jun 06 2011 Michael Friedrich <>
- reworked spec file to fit fhs compliance in /etc/mod_gearman
- moved extras/*conf from localestatedir to sysconfdir
- added config noreplace to config targets
- removed custom gearmand init script, interferes with gearmand dependency on rhel
* Fri Feb 11 2011 Sven Nierlein <>
- Adapted spec file for SLES11
* Wed Oct 13 2010 Olivier Raginel <>
- First build, on Scientific Linux CERN 5.5
Jump to Line
Something went wrong with that request. Please try again.