mrtg监控100M以上流量不准的解决办法(转)

http://blog.chinaunix.net/uid-8116903-id-334393.html mrtg监控100M以上流量不准的解决办法 /usr/local/mrtg-2/bin/cfgmaker –global ‘WorkDir: /var/www/html/mrtg/test’ –global ‘Options[_]: bits,growright’ –output /etc/mrtg/cfg/test.cfg –snmp-option=:::::2 –ifdesc=alias –no- down snmp值@IP地址注: (1)cfgmaker –snmp-option=:::::2表示采集时使用snmp2(采用64bit),可支持155M以上的大流量,而缺省是snmp1(采用32bit),流量超过100M后就不准确 (2)–no-down 表示不管端口是up还是down,都显示出来,缺省只显示up的端口 (3)–ifdesc=alias 表示将端口描述description作为图片提示语缺省是–ifdesc=nr 表示interface description uses Interface Number vi /etc/mrtg/cfg/test.cfg 加入以下 RunAsDaemon: Yes Refresh:300 //Language: GB2312 以下连运行三次 env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/cfg/test.cfg 再生成起始文件 /usr/local/mrtg-2/bin/indexmaker –output=/var/www/html/mrtg/zhonghualuGSR/index.html /etc/mrtg/cfg/test.cfg ======================== 参考资料 cfgmaker –global “WorkDir: /var/www/html/mrtg/6″ –global “icondir: /mrtg” –global “language: chinese” –global “Options[_]: growright,bits” –show-op-down –ifref=nr –ifdesc=descr –output=/etc/mrtg/mrtg.cfg public@192.168.1.6 2>/dev/null   说明:–global参数表示后面的选项对后面指定的设备都是有效的(如果希望对多个设备进行监控时, air max femme 该参数就会发生作用)。 New Balance 990 femme Asics Gel Quantum 360 Femme Canotta Portland Trail Blazers WorkDir用来指示 mrtg的工作目录;icondir用来指定图标的目录;language 表示指定生成HTML页面的语言;Options用来指定一些特定的选项。 Nike Air Max 90 homme new balance soldes Asics Pas Cher 在 Options设置中,growright表示时间增长的箭头方向向右;bits表示接口的带宽。 Air Jordan 6 Homme asics onitsuka tiger donna

  • Nike Air Max Thea Dames
  • 对于常见的应用来说,默认Options配置就可以满足需求(如果想了解有那些选项, asics running pas cher 可以参看/usr/lib/mrtg2/MRTG_lib.pm文件)。 New Balance 997.5 femme louboutin chaussures Soldes Asics 2017 此外,

  • Nike Air Max 2017 Dames zwart
  • –show-op-down表示显示 down的接口;–ifref表示设备接口的标示;–ifdesc用于选择参数来描述接口。 Nike Air Max 180 Homme Adidas Powerlift 3 Homme Nike Air Max 2017 Dames wit 其中, Herschel Walker UGA Jersey ifref可以指定的参数为nr、ip、eth、 descr和name;ifdesc可以指定的参数为nr、ip、eth、descr、name、type和alias。 new balance femme nike air zoom pegasus 33 donna 后面的–output的参数表示输出文件(缺省输出到屏幕);public@192.168.1.6中public表示Community串,一般交换机出厂设置为public; 192.168.1.6表示监控网络交换机设备的IP地址。 Adidas NMD Femme adidas yeezy boost 550 femme 更详细的说明可以参考man cfgmaker文档。

    Posted in 网管软件与工具 | Leave a comment

    CentOS 6.4下PXE+Kickstart无人值守安装操作系统 (转)

    一、简介 1.1 什么是PXE PXE(Pre-boot Execution Environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial file transfer protocol)或MTFTP(multicast trivial file transfer protocol)协议下载一个启动软件包到本机内存中执行,由这个启动软件包完成终端基本软件设置,从而引导预先安装在服务器中的终端操作系统。 严格来说,PXE 并不是一种安装方式,而是一种引导方式。进行 PXE 安装的必要条件是在要安装的计算机中必须包含一个 PXE 支持的网卡(NIC),即网卡中必须要有 PXE Client。 asics scarpe 2017 PXE 协议可以使计算机通过网络启动。 Johnathan Hankins 此协议分为 Client端和 Server 端,而PXE Client则在网卡的 ROM 中。当计算机引导时,BIOS 把 PXE Client 调入内存中执行,然后由 PXE Client 将放置在远端的文件通过网络下载到本地运行。

  • Asics Gel Nimbus 18 Uomo
  • 运行 PXE 协议需要设置 DHCP 服务器和 TFTP 服务器。DHCP 服务器会给 PXE Client(将要安装系统的主机)分配一个 IP 地址,由于是给 PXE Client 分配 IP 地址,所以在配置 DHCP 服务器时需要增加相应的 PXE 设置。

  • Air Max 2017 Uomo
  • 此外,在 PXE Client 的 ROM 中,已经存在了 TFTP Client,那么它就可以通过 TFTP 协议到 TFTP Server 上下载所需的文件了。 PXE的工作过程: 1. PXE Client 从自己的PXE网卡启动,向本网络中的DHCP服务器索取IP; 2. DHCP 服务器返回分配给客户机的IP 以及PXE文件的放置位置(该文件一般是放在一台TFTP服务器上) ; 3. PXE Client 向本网络中的TFTP服务器索取pxelinux.0 文件; 4. PXE Client 取得pxelinux.0 文件后之执行该文件; 5. nike air max 90 essential femme 根据pxelinux.0 的执行结果,通过TFTP服务器加载内核和文件系统 ; 6. 进入安装画面, 此时可以通过选择HTTP、FTP、NFS 方式之一进行安装; 1.2 什么是Kickstart Kickstart是一种无人值守的安装方式。它的工作原理是在安装过程中记录典型的需要人工干预填写的各种参数,并生成一个名为ks.cfg的文件。 California Golden Bears 如果在安装过程中(不只局限于生成Kickstart安装文件的机器)出现要填写参数的情况,安装程序首先会去查找Kickstart生成的文件,如果找到合适的参数,就采用所找到的参数;如果没有找到合适的参数,便需要安装者手工干预了。 NIKE AIR PEGASUS 92-16 所以,如果Kickstart文件涵盖了安装过程中可能出现的所有需要填写的参数,那么安装者完全可以只告诉安装程序从何处取ks.cfg文件,然后就去忙自己的事情。等安装完毕,安装程序会根据ks.cfg中的设置重启系统,并结束安装。 二、系统环境 实验环境:VMware Workstation 10 系统平台:CentOS release 6.4 (最小化安装) 网络模式:NAT模式(共享主机的IP地址) DHCP / TFTP IP:192.168.111.130 HTTP / FTP / NFS IP:192.168.111.130 防火墙已关闭/iptables: Firewall is not running. Umbro Medusae homme nike tn requin pas cher SELINUX=disabled 三、准备工作 生成ks.cfg 文件需要system-config-kickstart 工具,而此工具依赖于X Windows,所以我们需要安装X Windows 和Desktop 并重启系统,操作如下: # yum groupinstall “X Window System” # yum groupinstall Desktop # reboot 四、配置HTTP安装方式 系统的安装方式可以选择HTTP、FTP、 NFS,我们这里介绍HTTP方式的安装,其他两种方式的安装,大家可以自行百度。 4.1 安装并配置HTTP # yum install httpd –y # rpm -qa|grep httpd 2 开启服务并设置开机启动 # /etc/init.d/httpd start # chkconfig –level 35 httpd on 4.2 加载ISO镜像 在虚拟机中设置加载ISO镜像。 Oklahoma Sooners Jerseys 将iso文件挂载至/mnt/cdrom. 3 4.3 复制光盘全部内容至http 的根目录/var/www/html/ 下 # cp -r /mnt/cdrom/ /var/www/html/ HTTP部分设置完毕。 五、配置TFTP 5.1 安装tftp-server # yum install tftp-server –y 5.2 启用tftp 服务 # vi /etc/xinetd.d/tftp

    复制代码
    service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 }
    复制代码

    将disable 设置为no 5.3 启动tftp服务 因为tftp服务是挂载在超级进程xinetd 下的,所以通过启动xinetd 来启动tftp服务。 # /etc/init.d/xinetd restart 4 设置开机启动xinetd # chkconfig xinetd on 六、配置支持PXE的启动程序 6.1 复制pxelinux.0 文件至/var/lib/tftpboot/ 文件夹中 # cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ 说明:syslinux是一个功能强大的引导加载程序,而且兼容各种介质。更加确切地说:SYSLINUX是一个小型的Linux操作系统,它的目的是简化首次安装Linux的时间,并建立修护或其它特殊用途的启动盘。 Nike Roshe Run homme 6.2 复制iso 镜像中的/image/pxeboot/initrd.img 和vmlinux 至/var/lib/tftpboot/ 文件夹中 # cp /var/www/html/cdrom/images/pxeboot/{initrd.img,vmlinuz} /var/lib/tftpboot/ 6.3 复制iso 镜像中的/isolinux/*.msg 至/var/lib/tftpboot/ 文件夹中 # cp /var/www/html/cdrom/isolinux/*.msg /var/lib/tftpboot/ 6.4 在/var/lib/tftpboot/ 中新建一个pxelinux.cfg目录 # mkdir /var/lib/tftpboot/pxelinux.cfg 6.5 将iso 镜像中的/isolinux 目录中的isolinux.cfg复制到pxelinux.cfg目录中,同时更改文件名称为default # cp /var/www/html/cdrom/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default 6.6 修改default文件 # vi /var/lib/tftpboot/pxelinux.cfg/default

    复制代码
    default ks     #默认启动的是 'label ks' 中标记的启动内核 prompt 1 #显示 'boot: ' 提示符。为 '0' 时则不提示,将会直接启动 'default' 参数中指定的内容。 Canotta Houston Rockets timeout 6      #在用户输入之前的超时时间,单位为 1/10 秒。 display boot.msg #显示某个文件的内容,注意文件的路径。默认是在/var/lib/tftpboot/ 目录下。 cheap jordans uk 也可以指定位类似 '/install/boot.msg'这样的,路径+文件名。 F1 boot.msg     #按下 'F1' 这样的键后显示的文件。 Asics Gel Nimbus 18 Uomo
    
      Mens Air Jordan 4 F2 options.msg F3 general.msg F4 param.msg F5 rescue.msg label linux #'label' 指定你在 'boot:' 提示符下输入的关键字,比如boot: linux[ENTER],这个会启动'label linux' 下标记的kernel 和initrd.img 文件。 NIKE TANJUN kernel vmlinuz #kernel 参数指定要启动的内核。 append initrd=initrd.img #append 指定追加给内核的参数,能够在grub 里使用的追加给内核的参数,在这里也都可以使用。 LUNAREPIC FLYKNIT
    
      Maglie Oklahoma City Thunder label text kernel vmlinuz append initrd=initrd.img text label ks kernel vmlinuz append ks=http://192.168.111.130/ks.cfg initrd=initrd.img #告诉系统,从哪里获取ks.cfg文件 label local localboot 1 label memtest86 kernel memtest append -
    复制代码

    七、配置DHCP 7.1 安装DHCP服务 # yum -y install dhcp 7.2 复制配置模板文件到DHCP的配置目录中 # cp -f /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf 7.3 修改/etc/dhcp/dhcpd.conf 配置文件,内容如下:

    复制代码
    ddns-update-style interim; ignore client-updates; filename "pxelinux.0";   #pxelinux 启动文件位置; next-server 192.168.111.130;  #TFTP Server 的IP地址; subnet 192.168.111.0 netmask 255.255.255.0 { option routers 192.168.111.130; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.111.100 192.168.111.200; default-lease-time 21600; max-lease-time 43200; }
    复制代码

    7.4 启动DHCP服务 # /etc/init.d/dhcpd start 5 八、生成ks.cfg 文件 8.1 安装Kickstart # yum install system-config-kickstart 8.2 在桌面环境下配置Kickstart 启动X Windows 环境 # startx 配置Kickstart # system-config-kickstart 设置语言,键盘,时区,Root密码,安装完毕后重启等。

  • Nike Free 5.0 Donna
  • 设置安装方式,这篇文章介绍的是HTTP方式的安装,故选择HTTP 后面设置请参见原文,有图片的 我们可以打开/var/www/html/ks.cfg 文件进行查看并做修改。

    复制代码
    platform=x86, AMD64, or Intel EM64T #version=DEVEL # Firewall configuration firewall --disabled # Install OS instead of upgrade install # Use network installation url --url=http://192.168.111.130/cdrom/   #这个选项告诉安装程序:到服务器192.168.111.130 的HTTP根目录下的cdrom 文件夹下寻找安装介质 # Root password rootpw --iscrypted $1$vsvtP./e$6PVMNfJd.shq2LgFJjYfA1 # System authorization information auth --useshadow --enablemd5 # Use graphical install graphical firstboot --disable # System keyboard keyboard us # System language lang en_US # SELinux configuration selinux --disabled # Installation logging level logging --level=info # Reboot after installation reboot # System timezone timezone --isUtc Asia/Shanghai # Network information network --bootproto=dhcp --device=eth0 --onboot=on # System bootloader configuration key --skip bootloader --append="rhgb quiet" --location=mbr --driveorder=sda # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part / --fstype="ext4" --size=8192 part swap --fstype="swap" --size=1024 part /home --fstype="ext4" --size=2048 %packages @base %end
    复制代码

    说明:key –skip 如果是红帽系统,此选项可以跳过输入序列号过程;如果是CentOS 系列,则可以不保留此项内容; reboot 此选项必须存在,也必须文中设定位置,不然kickstart显示一条消息,并等待用户按任意键后才重新引导; clearpart –all –initlabel 此条命令必须添加,不然系统会让用户手动选择是否清除所有数据,这就需要人为干预了,从而导致自动化过程失败; 九、测试安装 自动化安装系统配置完毕,下面启动一台新的机器进行测试,网络连接模式选择NAT模式。 其操作过程比较简单,在此略过,就是普通的创建一个虚拟机 启动虚拟机,选择从网卡启动,DHCP 服务器正在给客户机分配IP地址,后面的过程如果您照着做,应该就能看到效果了。

    Posted in Linux | Leave a comment

    MATHESON: These numbers are almost certainly wrong

    So economists who have gone back and actually looked at cities that have hosted the Super Bowl, we come up with numbers somewhere in the vicinity of 30 to $120 million. New Balance 999 femme baskets ASICS

  • ULTRA BOOST
  • Not something that New Jersey and New York should turn down, but it’s a fraction of the number that’s being claimed.. Plus, until very recently,cheap china jerseys Starbucks shares have been Cheap Baseball Jerseys From China trending higher and providing investors with enough in the way of gains and dividends to buy their own drinks. nike dynamo free td Starbucks shares recently took a hit after the company reported weaker than expected earnings. new balance homme Nike Air More Uptempo UGG Classic Short chaussures gel lyte 5 For the fiscal third quarter of 2012, Starbucks reported earnings of 43 cents per share, which was below estimates of 45 cents. adidas stan smith camo 1. Canada Goose France new balance femme Parajumpers Femme Californian Joanna Nike Air Huarache Sale Julius Randle has been a Cheap Wholesale Baseball Jerseys Free Shipping major driving force for the Lakers lately,cheap china jerseys and that goes well beyond his stats. TEAM COURT Randle wasn the high scorer against the Kings, but he was the catalyst for the Lakers surge late in the second quarter. Nike Sb homme “One time, we were eating at when Tyler ordered us to change seats, because the Lord had informed him about a ‘spot of demonic darkness’ nearby. Adidas NMD Femme I quipped back, saying that ‘the Lord didn’t tell me. Nike Air Jordan 11
    I think we should stay.’ He took me aside and said, ‘How dare you put your friends’ souls in jeopardy by questioning the word of the Lord.’”. asics tiger donna Julio Jones Jersey During his stint with the White Sox, Jackson promised his mother, who was battling colon cancer, that he would hit a home run for her upon returning from his surgery. Florida State Seminoles Nike Air Jordan Although Jackon’s mother passed away before he could fulfill his promise, Jackson did hit a home run in his first at bat following his surgery. nike outlet shop online new balance baskets Jalen Hurts Jersey According to Jackson in the ESPN documentary, Jackson had the home run ball encased in acrylic and bolted to his mother’s dresser in her bedroom.. Nike Air Max 2018 Homme Nike Air Max 2017 blanche Homme Heard two weeks that the whole race is over, that our path was gone, Conway responded. Nike Free 5.0 enfants Is really the state where we need an incredibly strong day of performance, but Wholesale NHL Jerseys Free Shipping we also preparing for that. Air Jordan 9 bambini nike tn bordeaux

  • Air Max Flyknit Homme
  • We deployed different assets there,http://www.cheapjerseys11.com we moved some personnel around last week anticipating that this might happen.. Adidas Gazelle Homme Nike Air Max 90 Femme Noir Et Rose Parajumpers Femme Adirondack The halfbacks are quicker and more explosive.This topic was very hard to discuss, trying to narrow the greatest down to only ten. NIKE AIR ZOOM ELITE 9

    Well, here it is. New Balance 577 femme Joe Namath Jersey The top ten running backs ever to play the game. Todd Gurley Jerseys But, feel free to walk on the treadmill, and because you’ve had back surgery, I want you to think about doing these low impact stuff, like the elliptical, a little cross ski machines are fantastic. Russell Wilson Seattle Seahawks Jersey New Balance 1300 męskie Treadmill not a big fan of that, if you’ve had back surgery cause of the pounding of the feet it’s going Wholesale Cheap football Jerseys Free Shipping to put a lot of pressure on your spine. Air Jordan Eclipse Homme Nike Air Max 2016 Homme

  • NIKE AIR MORE UPTEMPO
  • I want your back strong, let me show you a few things you can do Wholesale NHL Jerseys Free Shipping to just kind of get back in the swing of things.

    Posted in Linux | Leave a comment