快速业务通道

linux下面源码安装mrtg与关联的软件

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-19
ib --with-z-lib=/www/zlig/lib
[root@localhost mrtg-2.16.4]# make
[root@localhost mrtg-2.16.4]# make install

snmp的安装
[root@localhost mrtg-2.16.4]# rpm -vih /iso/Server/lm_sensors-devel-2.10.7-4.el5.i386.rpm
[root@localhost mrtg-2.16.4]# rpm -vih /iso/Server/net-snmp-5.3.2.2-5.el5.i386.rpm
[root@localhost ~]# rpm -vih /iso/Server/net-snmp-utils-5.3.2.2-5.el5.i386.rpm

[root@localhost mrtg-2.16.4]# vi /etc/snmp/snmpd.conf
access notConfigGroup "" any noauth exact systemview none none这个这行改成下面这样
access notConfigGroup "" any noauth exact all all none
#view all included .1 80
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
改成下面这样.
view all included .1 80
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
[root@localhost mrtg-2.16.4]# /etc/init.d/snmpd restart
Stopping snmpd: [FAILED]
Starting snmpd: [ OK ]
[root@localhost ~]# snmpwalk -v 1 -c public 192.168.11.11 IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.1.153 = INTEGER: 3
IP-MIB::ipAdEntIfIndex.192.168.11.11 = INTEGER: 2

[root@localhost ~]# netstat -tuln|grep 161 拥有帝国一切,皆有可能。欢迎访问phome.net
udp 0 0 0.0.0.0:161 0.0.0.0:*

说明SNMP成功的,并且能获得192.168.11.11的mib信息.

[root@localhost ~]# mkdir /www/httpd/htdocs/mrtg 这个是用与存放mrtg的网页
[root@localhost bin]# mkdir /www/mrtg/etc 这个是用于存放mrtg的配置文件.
下面是生成配置文件.
[root@localhost bin]# ./cfgmaker --global "WorkDir:/www/httpd/htdocs/mrtg" -global "Options[_]:growright,bits" -ifref=ip --output /www/mrtg/etc/mrtg.cfg

public@192.168ncurses的安装
[root@localhost ~]# tar zxvf /mnt/ncurses-5.7.tar.gz -C /tmp
[root@localhost ~]# cd /tmp/ncurses-5.7/
[root@localhost ncurses-5.7]# ./configure --prefix=/www/ncurses --with-shared
** Configuration summary for NCURSES 5.7 20081102:

extended funcs: yes
xterm terminfo: xterm-new

bin directory: /www/ncurses/bin
lib directory: /www/ncurses/lib
include directory: /www/ncurses/include/ncurses
man directory: /www/ncurses/man
terminfo directory: /www/ncurses/share/terminfo

** Include-directory is not in a standard location
[root@localhost ncurses-5.7]# make
[root@localhost ncurses-5.7]# make install

httpd的安装
[root@localhost ncurses-5.7]# tar zxvf /mnt/httpd-2.2.9.tar.gz -C /tmp
[root@localhost ncurses-5.7]# cd ../httpd-2.2.9/
[root@localhost httpd-2.2.9]# ./configure --prefix=/www/httpd --enable-modules=all --enable-so --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-
cache --enable-proxy --enable-proxy-http --enable-proxy-ftp --enable-proxy-ajp --enable-proxy-balancer --with-mpm=worker --enable-mods-shared=all --enable-static-ab
--enable-cgi --enable-rewrite
make[4]: Leaving directory `/tmp/httpd-2.2.9/modules/mappers''
make[3]: Leaving directory `/tmp/

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号