zabbix 监控 3com

zabbix 可以监控cisco 但是不可以监控H3C 但是我的SNMP一切正常。(不要嫉妒我这个snmp好用的软件,我一会给大家附上。)

wKioL1UKSDCjVA5YAAJoXacA_ho496.jpg

为啥不行呢,答案,因为h3c太懒没有写zabbix template,所以 zabbix 不支持它。为啥h3c这么懒,因为它的mib写的太差了。看了之后都有一点头晕。

给你们看一下。是不是有一些头晕!h3c都用的神一样的编号。iso.3.6.6.1.2.1.2.2.1.16.1是什么意思?请自行去查你的h3c对应mib表去。我这里我已经查过了,表示是第一个端口的流量。好吧。我就自己写一个templete对应它吧。于是,我自己写了一个zabbix templete.

wKiom1UKWg3wtKN2AAQVVK-PTqU916.jpg


自行对应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 配置。

wKiom1UKXE3zAj-cAAIeG54vlyw382.jpg



最后总结一下,要相信,只要是开源,自然有办法。只要是我能读出来,就能让zabbix读出来,存起来!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章