營運筆記-snmp的安裝配置

來源:互聯網
上載者:User

剛剛上的新項目,在部署伺服器時需要開啟snmp服務供監控機採集資料進行監控。要求如下:

1、指定採集機和另一台機器來採集資料

2、指定團體名,且為唯讀

配置如下:(紅色為修改的地方)

1、# sec.name source communitycom2sec notConfigUser default public將“comunity”欄位改為要設定的密碼,也就是團體名(不能使用符號,會出錯)將“default”改為授權訪問的ip
2、# Finally, grant the group read-only access to the systemview view.# group context sec.model sec.level prefix read write notifaccess notConfigGroup "" any noauth exact all none none
3、## incl/excl subtree maskview all included .1 80 去掉注釋
4、# Make at least snmpwalk -v 1 localhost -c public system fast again.# name incl/excl subtree mask(optional)view systemview included .1.3.6.1.2.1.1view systemview included .1.3.6.1.2.1.25.1.1view all included .1 添加
5、## -or just the mib2 tree-view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc 去掉注釋

測試:snmpwalk -v 2c -c public serverIP ifpublic為團體名,serverIP為被監控主機ip,if為查看連接埠資訊

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.