nagios安装

mkdir /root/nagios
useradd nagios
cd nagios/
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.4.4.tar.gz 
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.16.tar.gz
yum install gd gd-devel httpd php gcc glibc glibc-common openssl-devel
tar xvzf nagios-3.4.4.tar.gz
./configure 
make all
make install 
make install-init
make install-commandmode
make install-config
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
chkconfig nagios on
service nagios start
cd ..
tar xvzf nagios-plugins-1.4.16.tar.gz 
cd nagios-plugins-1.4.16
./configure 
make
./configure 
make
make install 
service httpd start
chkconfig httpd on

然后访问 http://ip/nagios  

user:nagiosadmin

passwd:xxxxxxx

posted @ 2013-06-08 16:32  sunsweet  阅读(176)  评论(0编辑  收藏  举报