{"id":12868,"date":"2023-11-02T14:44:08","date_gmt":"2023-11-02T06:44:08","guid":{"rendered":"https:\/\/www.lwops.cn\/?p=12868"},"modified":"2023-11-02T14:44:09","modified_gmt":"2023-11-02T06:44:09","slug":"zabbix%e6%8a%80%e6%9c%af%e5%88%86%e4%ba%ab-%e4%bd%bf%e7%94%a8snmpv2%e7%9b%91%e6%8e%a7%e7%bd%91%e7%bb%9c%e8%ae%be%e5%a4%87","status":"publish","type":"post","link":"https:\/\/www.lwops.cn\/index.php\/interflow\/technology\/12868","title":{"rendered":"zabbix\u6280\u672f\u5206\u4eab\u2014\u2014\u4f7f\u7528SNMPv2\u76d1\u63a7\u7f51\u7edc\u8bbe\u5907"},"content":{"rendered":"\n
SNMP\uff08\u7b80\u5355\u7f51\u5173\u534f\u8bae\uff0cSimple Network Management Protocol\uff09\u662f\u4e13\u95e8\u8bbe\u8ba1\u7528\u4e8e\u5728 IP \u7f51\u7edc\u7ba1\u7406\u7f51\u7edc\u8282\u70b9\uff08\u670d\u52a1\u5668\u3001\u5de5\u4f5c\u7ad9\u3001\u8def\u7531\u5668\u3001\u4ea4\u6362\u673a\u53caHUBS\u7b49\uff09\u7684\u4e00\u79cd\u6807\u51c6\u534f\u8bae\uff0c\u5b83\u662f\u4e00\u79cd\u5e94\u7528\u5c42\u534f\u8bae\u3002<\/p>\n\n\n\n
SNMP\u7684\u524d\u8eab\u662f\u7b80\u5355\u7f51\u5173\u76d1\u63a7\u534f\u8bae\uff08SGMP\uff09\uff0c\u7528\u6765\u5bf9\u901a\u4fe1\u7ebf\u8def\u8fdb\u884c\u7ba1\u7406\u3002\u968f\u540e\u4eba\u4eec\u5bf9SGMP\u8fdb\u884c\u4e86\u5f88\u5927\u7684\u4fee\u6539\uff0c\u7279\u522b\u662f\u52a0\u5165\u4e86\u7b26\u5408Internet\u5b9a\u4e49\u7684SMI\u548cMIB\uff0c\u6539\u8fdb\u540e\u7684\u534f\u8bae\u5c31\u662f\u8457\u540d\u7684SNMP\u3002<\/p>\n\n\n\n
\u5229\u7528SNMP\uff0c\u4e00\u4e2a\u7ba1\u7406\u5de5\u4f5c\u7ad9\u53ef\u4ee5\u8fdc\u7a0b\u7ba1\u7406\u6240\u6709\u652f\u6301\u8fd9\u79cd\u534f\u8bae\u7684\u7f51\u7edc\u8bbe\u5907\uff0c\u5305\u62ec\u76d1\u89c6\u7f51\u7edc\u72b6\u6001\u3001\u4fee\u6539\u7f51\u7edc\u8bbe\u5907\u914d\u7f6e\u3001\u63a5\u6536\u7f51\u7edc\u4e8b\u4ef6\u8b66\u544a\u7b49\u3002\u867d\u7136SNMP\u5f00\u59cb\u662f\u9762\u5411\u57fa\u4e8eIP\u7684\u7f51\u7edc\u7ba1\u7406\uff0c\u4f46\u4f5c\u4e3a\u4e00\u4e2a\u5de5\u4e1a\u6807\u51c6\u4e5f\u88ab\u6210\u529f\u7528\u4e8e\u7535\u8bdd\u7f51\u7edc\u7ba1\u7406\u3002<\/p>\n\n\n\n
\u57fa\u4e8eTCP\/IP\u7684SNMP\u7f51\u7edc\u7ba1\u7406\u6846\u67b6\u75313\u4e2a\u4e3b\u8981\u90e8\u5206\u7ec4\u6210\uff0c\u5373\u7ba1\u7406\u4fe1\u606f\u7ed3\u6784SMI\uff08Structure ofManagement Information\uff09\u3001\u7ba1\u7406\u4fe1\u606f\u5e93MIB\u548c\u7ba1\u7406\u534f\u8baeSNMP\u3002<\/p>\n\n\n\n
SNMP \u62a5\u6587\u7ed3\u6784<\/strong><\/strong><\/p>\n\n\n\n \u76ee\u524dSNMP\u6709\u4e09\u4e2a\u7248\u672c\uff0c\u5206\u522b\u662fSNMP v1\u3001SNMP v2c\u548cSNMP v3\u3002<\/p>\n\n\n\n \u4f7f\u7528\u7684SNMP\u7248\u672c\u4e3av2\uff0c\u534e\u4e3a\u4ea4\u6362\u673a\u914d\u7f6e\u5206\u4e3a\u4ee5\u4e0b\u51e0\u6b65\uff1a<\/p>\n\n\n\n *\u6ce8\u610f\u7f3a\u7701\u60c5\u51b5\u4e0b\u56e2\u4f53\u540d\u6700\u5c0f\u957f\u5ea6\u4e3a8\uff0c\u81f3\u5c11\u5305\u542b\u4e24\u79cd\u4e0d\u540c\u5b57\u7b26\uff0c\u533a\u5206\u5927\u5c0f\u5199\uff0c\u7279\u6b8a\u5b57\u7b26\u4e0d\u5305\u62ec\u7a7a\u683c\u548c\u95ee\u53f7\u3002<\/p>\n\n\n\n \u6d4b\u8bd5\u547d\u4ee4\uff1asnmpwalk -v 2c -c \u56e2\u4f53\u540d IP<\/p>\n\n\n\n \u6ce8\uff1a\u4e0d\u901a\u5219\u4f1a\u53cd\u9988Timeout\uff08\u8d85\u65f6\uff09<\/p>\n\n\n\n
1.\u7f51\u7edc\u8bbe\u5907\u914d\u7f6eSNMP<\/strong><\/h3>\n\n\n\n
\n
\n
2.\u9a8c\u8bc1\u56e2\u4f53\u540d\u662f\u5426\u914d\u7f6e\u6210\u529f\uff1a<\/strong><\/strong><\/h3>\n\n\n\n