Page 1 of 1

Nagios XI 2011R2 manual install on CentOS 6.2 hang

Posted: Sat Feb 11, 2012 2:32 pm
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.

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

Posted: Mon Feb 13, 2012 9:06 am
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