zabbix 可以監控cisco 但是不可以監控H3C 但是我的SNMP一切正常。(不要嫉妒我這個snmp好用的軟件,我一會給大家附上。)
爲啥不行呢,答案,因爲h3c太懶沒有寫zabbix template,所以 zabbix 不支持它。爲啥h3c這麼懶,因爲它的mib寫的太差了。看了之後都有一點頭暈。
給你們看一下。是不是有一些頭暈!h3c都用的神一樣的編號。iso.3.6.6.1.2.1.2.2.1.16.1是什麼意思?請自行去查你的h3c對應mib表去。我這裏我已經查過了,表示是第一個端口的流量。好吧。我就自己寫一個templete對應它吧。於是,我自己寫了一個zabbix templete.
自行對應templete 編寫如下。
<?xml version="1.0"?>
<zabbix_export version="1.0" date="02.04.08" time="10.34">
<hosts>
<host name="Template_h3ctest">
<ip>0.0.0.0</ip>
<port>10050</port>
<status>3</status>
<groups>
</groups>
<items>
<item type="1" key="GigabitEthernet1" value_type="3">想看幾個口就寫幾遍
<description>GigabitEthernet1</description>
<delay>30</delay>
<history>90</history>
<trends>365</trends>
<formula>1</formula>
<snmp_community>public</snmp_community> * public是不是改你自己看呀!
<snmp_oid>iso.3.6.1.2.1.2.2.1.16.1</snmp_oid>
<snmp_port>161</snmp_port>
</item>
</items>
<graphs>
<graph_elements> 想出幾個口的圖,就寫幾個,看你自己想呀!
<graph_item>
<sortorder>0</sortorder>
<drawtype>2</drawtype>
<color>009900</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>H3C</host>
<key>GigabitEthernet1</key> *我只看了一個端口
</item>
</graph_item>
</graph_elements>
</graphs>
</host>
</hosts>
</zabbix_export>
不想寫!!!好吧。我把這個附件給你。你自行改吧!
然後把templete 上傳到zabbix, 然後改一下zabbix 配置。
最後總結一下,要相信,只要是開源,自然有辦法。只要是我能讀出來,就能讓zabbix讀出來,存起來!