3: 安装nagios
#### installnagios.sh####
tar -xvf nagios-4.0.8.tar.gz
cd nagios-4.0.8
useradd nagios
groupadd nagcmd
usermod -G nagcmd nagios
usermod -G nagcmd www
./configure --with-command-group=nagcmd --prefix=/kingdee/nagios --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install
make install-init
make install-config
make install-commandmode
cd ..
tar -xvf nagios-plugins-2.0.3.tar.gz cd nagios-plugins-2.0.3 ./configure --with-command-group=nagcmd --prefix=/kingdee/nagios --with-nagios-user=nagios --with-nagios-group=nagios make
make install
ln /kingdee/nagios/share /kingdee/www/nagios/nagios