DNSCPU/MemoryUsage統計~SNMP版

王朝other·作者佚名  2008-05-18
宽屏版  字体: |||超大  

net-snmp 官網為 http://www.net-snmp.org

1.下載與安裝 net-snmp (舊名為 ucd-snmp)

代码:

$>wgethttp://voxel.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.1.2.tar.gz

$>./configure --prefix=/usr/local \--with-sys-contact="abel@localhost" \--with-sys-location="Taiwan,Tel:123456767" \--with-mib-modules="misc/ipfwacc mibII host disman/event-mib ucd_snmp agent_mibs agentx notification target utilities host disman/event-mib smux ucd-snmp/diskio tunnel mibII/mta_sendmail ap2_snmp" \--with-sysconfdir="/usr/local/etc/snmp" --enable-shared --with-default-snmp-version=2

$>make

$>make install

理論上這些過程應不會碰到任何問題的 (我在 RH 7.3/8.0.9.0 都很順利)若您使用不同的平台,

?墓倬W的 download 去找,幾乎都可以找到,若習慣用 RPM 就下 rpm file 即可(我沒用過),SunOs

就下 SunOS 版的.

configure 我用的參數,您可在 ./configure --help 時得到說明,僅就最重 --with-mib-modules

做些說明,這個意思即是要把某些 mib 功能直接加入 snmp 中,我個人習慣都是在 complier 時就

加進?

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有