Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
how to install nagios3 with mod-gearman on Ubuntu

how to install nagios3 with mod-gearman on Ubuntu

configure apt to not install sugested and recommended packages

sudo tee /etc/apt/apt.conf.d/02recommends <<END
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::AutoRemove::RecommendsImportant false; # optional

add ppa repo for gearman and install it

sudo apt-add-repository -y ppa:gearman-developers/ppa
sudo apt-get update
sudo apt-get install gearman
cd /usr/lib && sudo ln -s

download mod-gearman deb packages

mkdir mod-gearman && cd mod-gearman

# your version might be other than 1.3.6

install nagios

sudo apt-get install nagios3
usermod -s /bin/bash nagios

configure nagios

# make sure to set /etc/nagios3/nagios.cfg with the folowing options:
broker_module=/usr/lib/mod_gearman/mod_gearman.o config=/etc/mod-gearman/module.conf

finally restart nagios

invoke-rc.d nagios3 restart


# check that nagios loaded the mod-gearman 
grep mod_gearman /var/log/nagios3/nagios.log | grep 'initialized successfully'

# check the status of gearman workers
/usr/lib/nagios/plugins/check_gearman -H localhost -q worker_`hostname` -t 10 -s check

# list workers in gearman queue
Copy link

wencesc commented Oct 10, 2013

hello .... thank you very much for the info!

follow step by step all ... but I have some problems because modgearman not start, the problem is because it creates the module. conf and I have conflicts with the line:

I just have to download the deb packages .... or should I install them also? .... because in your hand only downloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment