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