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

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2489.html

(0)
上一篇 2021年7月16日
下一篇 2021年7月16日

相关推荐

发表回复

登录后才能评论