Nagios XI 2011R2 manual install on CentOS 6.2 hang

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Nagios XI 2011R2 manual install on CentOS 6.2 hang

Post by nagiosadmin42 »

I'm doing the manual install of Nagios XI ( xi-2011r2.0.tar.gz ) on CentOS 6.2 ( 2.6.32-220.el6.x86_64 ) and ran into a script hang during the subcomponents/nagioscore/post-install phase. I tracked it down to the permissions step where find uses the -exec option with xargs:

Code: Select all

find /usr/local/nagios/etc \
        /usr/local/nagios/etc/hosts \
        /usr/local/nagios/etc/services \
       -maxdepth 1 -name \*.cfg -exec xargs chmod ug-s {} +
Since the special form of find's -exec option: "{} +" is used (which appends the filename to the end of the command), we don't need xargs -- which seemed to be the culprit causing the hang. I modified the command as follows, and the subsequent run of fullinstall completed successfully.

Code: Select all

find /usr/local/nagios/etc \
        /usr/local/nagios/etc/hosts \
        /usr/local/nagios/etc/services \
        -maxdepth 1 -name \*.cfg -exec chmod ug-s {} +
Hopefully this saves time for anyone else that may run into the post-install hang.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI 2011R2 manual install on CentOS 6.2 hang

Post by scottwilkerson »

This was a known issue that was fixed in R2.1

You can download the new tarball here
http://assets.nagios.com/downloads/nagi ... 2.1.tar.gz
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked