主机系统:Windows XP
虚拟机:VMware WorkStation7.0.1 build-227600
虚拟系统:RHEL5.3
下载:
libgts0-0.7.6-1.pclo2005.mde.i586.rpm
gtkglext-1.2.0-4.i386.rpm
graphviz-2.28.0-1.el5.i386.rpm
graphviz-devel-2.28.0-1.el5.i386.rpm
graphviz-doc-2.28.0-1.el5.i386.rpm
graphviz-gd-2.28.0-1.el5.i386.rpm
graphviz-graphs-2.28.0-1.el5.i386.rpm
graphviz-guile-2.28.0-1.el5.i386.rpm
graphviz-java-2.28.0-1.el5.i386.rpm
graphviz-python-2.28.0-1.el5.i386.rpm
graphviz-ruby-2.28.0-1.el5.i386.rpm
graphviz-tcl-2.28.0-1.el5.i386.rpm
nagvis-1.5.9.tar.gz
安装graphviz
yum install createrepo
rpm -iv libgts0-0.7.6-1.pclo2005.mde.i586.rpm
rpm -iv gtkglext-1.2.0-4.i386.rpm
将所有graphviz开头的rpm放置到同一个文件夹中
例如:/yum
createrepo /yum
修改/etc/yum.repos.d/中的repo文件
添加:
[yum]
name = yum
baseusl = file:///yum
enabled = 1
gpgcheck =0
yum install graphviz
安装nagvis
yum install php-gd
yum install php-mbstring
yum install php-pdo
tar xvf nagvis-1.5.9.tar.gz
cd nagvis-1.5.9
./install.sh
注意安装过程中是否所有条件都满足
修改用户组
usermod -a -G nagios apache
修改系统安全设置
vi /etc/selinux/config
改成:SELinux=disable
重启apache
service httpd restart
登录测试
URL:http:///nagvis
username: nagiosadmin
password:nagiosadmin
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24751738/viewspace-707256/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24751738/viewspace-707256/