标签:
可以到管网下载nagios相应版本和插件(这里建议用我给出的版本,顺便分享一句很经典的话,先把路走通然后再想着把路走远):
wget http://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz http://sourceforge.net/projects/nagios-cn/files/latest/download http://down1.chinaunix.net/distfiles/nagios-plugins-1.4.14.tar.gz http://nchc.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz
make install //来安装主程序,CGI和HTML文件
make install-init //在/etc/rc.d/init.d安装启动脚本
make install-config //来安装示例配置文件,安装的路径是/usr/local/nagios/etc
make install-commandmode //来配置目录权限
make install-webconf // 配置nagios跟apache整合
tar zxvf nagios-plugins-1.4.14.tar.gz
cd nagios-plugins-1.4.14
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
make && make install
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service nagios restart
输入两次密码即可,登录页面的时候会用到这个密码.
标签:
原文地址:http://www.cnblogs.com/xiexiaohua007/p/5176396.html