2011年4月17日 星期日

CentOS 5.5 設定SNMP

學校最近在測What's UP


於是找了一台Linux來設定SNMP測試看看 :)


 


1. 使用yum 安裝 snmp 相關套件


# yum -y install net-snmp net-snmp-utils


 


第一步驟安裝完,使用預設的設定檔啟動snmp就可以了


設定檔的位置在 /etc/snmp/snmpd.conf


2. 啟動snmp


# service snmp start


 


3. 檢查snmp 啟動狀態


3.1 使用 snmpwalk 工具測試


# snmpwalk -c public -v 2c localhost system


3.2 檢查port是否開啟
# netstat -tnlup | grep snmpd
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      7279/snmpd
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               7279/snmpd


沒有留言:

張貼留言

如何在 golang 裡面引用 gitlab private repo

參考文章:https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository 原文是用 gitlab.company.com 當範例,這邊改成一般帳號...