Nagios XI 2011R2 manual install on CentOS 6.2 hang
Posted: Sat Feb 11, 2012 2:32 pm
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:
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.
Hopefully this saves time for anyone else that may run into the post-install hang.
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 {} +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 {} +