Page 1 of 1

NagiosXI 2014R1.4 / mod_gearman

Posted: Thu Sep 11, 2014 11:36 am
by devinacosta
We are currently running NagiosXI 2012R2.8 and we are doing an upgrade today to NagiosXI 2014R1.4. Previously we installed mod_gearman using the automated script but I am under the assumption that it won't work once the upgrade is complete. How do I get mod_gearman to work with NagiosXI 2014. Please advise.

Re: NagiosXI 2014R1.4 / mod_gearman

Posted: Thu Sep 11, 2014 11:39 am
by slansing
Your assumption is correct, you will need to follow these steps:

Code: Select all

cp /etc/mod_gearman/* /tmp/
rpm -qa | grep gearman
rpm -e gearmand gearmand-devel mod_gearman libgearman
wget http://assets.nagios.com/downloads/mod_gearman/rpms/mod_gearman-1.5.0b1-1.el6.x86_64.rpm
yum localinstall --nogpgcheck mod_gearman-1.5.0b1-1.el6.x86_64.rpm
That is for rhel/centos 6x 64bit, let me know if you have another version or architecture installed.

Re: NagiosXI 2014R1.4 / mod_gearman

Posted: Fri Oct 03, 2014 2:57 pm
by tylerhoadley
For those who have made the change to 2014 or core 4 with the mod_gearman (v0.25 for nagios4) installed.

Here is the quick write up for those upgrading... Its fairly close to slansing write only with the additional package removal (gearmand-server) and an approach for those running gearman worker services with nagios or on additional servers

Below is the cmd to upgrade mod_gearman packages (usable on nagios and others worker servers)

Code: Select all

# if you commented the epel.repo to exclude *gearman* because of conflicting package versions
sed -i 's!exclude=!#exclude=!g' /etc/yum.repos.d/epel.repo

Code: Select all

cp /etc/mod_gearman/* /tmp/
rpm -qa | grep gearman
rpm -e gearmand-server gearmand gearmand-devel mod_gearman libgearman
wget http://assets.nagios.com/downloads/mod_gearman/rpms/mod_gearman-1.5.0b1-1.el6.x86_64.rpm
yum -y localinstall --nogpgcheck mod_gearman-1.5.0b1-1.el6.x86_64.rpm

# restore your Configs
cat /etc/mod_gearman/mod_gearman_neb.conf.rpmsave > /etc/mod_gearman/mod_gearman_neb.conf
cat /etc/mod_gearman/mod_gearman_worker.conf.rpmsave > /etc/mod_gearman/mod_gearman_worker.conf

# restart mod_gearman_worker service 
/etc/init.d/mod_gearman_worker  restart
/etc/init.d/mod_gearman_worker  status
Then Below is the cmd to finish off the nagios server with main gearmand service.

Code: Select all

 
## after running above commands ##
# restart gearmand service
/etc/init.d/gearmand restart
/etc/init.d/gearmand status
# restart nagios service to load new module
/etc/init.d/nagios  restart
/etc/init.d/nagios status

# gearman_top 
If all goes as well as it did for me, you will see no impact on your nagios service and checks. and gearman_top will display those checks running and executing

Thanks Slansing for informing me of the latest mod_gearman/nagios4 release and the quick instructions on installing v1.1.8

Cheers

Updated:

And finally once all is running... Navigate to CCM > Commands and Search "-perfdata-file-bulk"

Replace the commands back to not include sed anymore :)

process-host-perfdata-file-bulk => /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host

process-service-perfdata-file-bulk => /bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service

Re: NagiosXI 2014R1.4 / mod_gearman

Posted: Fri Oct 03, 2014 3:15 pm
by slansing
Thanks for the awesome write-up Tyler! I'm sure it will be quite useful for others in the future!