NagiosXI 2014R1.4 / mod_gearman
-
devinacosta
- Posts: 21
- Joined: Mon Jun 11, 2012 11:57 am
NagiosXI 2014R1.4 / mod_gearman
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NagiosXI 2014R1.4 / mod_gearman
Your assumption is correct, you will need to follow these steps:
That is for rhel/centos 6x 64bit, let me know if you have another version or architecture installed.
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- tylerhoadley
- Posts: 43
- Joined: Tue Jul 02, 2013 1:41 pm
Re: NagiosXI 2014R1.4 / mod_gearman
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)
Then Below is the cmd to finish off the nagios server with main gearmand service.
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
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
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
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
Last edited by tylerhoadley on Fri Oct 03, 2014 3:48 pm, edited 1 time in total.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NagiosXI 2014R1.4 / mod_gearman
Thanks for the awesome write-up Tyler! I'm sure it will be quite useful for others in the future!