net-snmp for windows
本來windows自己帶的那個也很好用的,但是安裝教程在“添加或刪除程式”裡添加的時候,拷貝檔案總是出錯,無法完成安裝。在*nix很流行的net-snmp其實有Windows版本的,是系統內建的snmp一個不錯的替代方案。其安裝配置過程如下:
1. 安裝從這裡下載
,我們將要把net-snmp安裝到I:/usr,安裝過程只要修改一下安裝路徑就行,其他地方一路斷行符號。2. 配置在I:/usr/etc/snmp目錄下建立一個檔案snmpd.conf,其內容如下com2sec notConfigUser default publicgroup notConfigGroup v1 notConfigUsergroup notConfigGroup v2c notConfigUserview systemview included .1.3.6.1.2.1.1view systemview included .1.3.6.1.2.1.25.1.1access notConfigGroup “” any noauth exact all none noneview all included .1 80view mib2 included .iso.org.dod.internet.mgmt.mib-2 fcview all included .1注意:這個目錄下有一個snmp.conf,不要搞混了3.配置windows服務啟動一個命令視窗,將工作目錄改到I:/usr下,執行一下I:/usr>bin/snmpd -vNET-SNMP version: 5.5Web: http://www.net-snmp.org/Email: net-snmp-coders@lists.sourceforge.net主檔案正常,下一步將它安裝為windows服務,執行I:/usr>registeragent.batRegistering snmpd as a service using the following additional options:.-Lf “I:/usr/log/snmpd.log”..For information on running snmpd.exe and snmptrapd.exe as a Windowsservice, see ‘How to Register the Net-SNMP Agent and Trap Daemon asWindows services’ in README.win32..請按任意鍵繼續. . .I:/usr>服務註冊成功,下面啟動net-snmpI:/usr>net start “net-snmp agent”Net-SNMP Agent 服務已經啟動成功。I:/usr>我們可以在windows的工作管理員中看到snmpd.exe這個進程。4.測試檢查一下我們的成果,在命令列視窗執行snmpwalk -v 1 -c public -m ALL 127.0.0.1其中public相當串連密鑰了,要和snmd.conf中的com2sec notConfigUser default public一致。如果一切順利,你將會看到很多資料在滾。下一步就可以cacti這樣的監控程式去抓資料畫圖了。5.參考資料http://blog.chinaunix.net/u/249/showart_1415021.htmlhttp://blog.csdn.net/podded/archive/2007/12/19/1953929.aspx