1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Allied Telesis x530LをZabbixで監視する /w mib2zabbix

1
Last updated at Posted at 2026-06-14

拡張MIBの整理

公式から入手した拡張MIBのうち、x530Lで使えないもの、トラップ専用のものを除外します。(トラップを設定するつもりがないため)

x530Lで使える拡張MIBファイル(トラップ専用除く)
at-atmf.mib
at-boards.mib
at-dns.mib
at-envmonv2.mib
at-epsrv2.mib
at-fiber-monitoring.mib
at-filev2.mib
at-ip.mib
at-license.mib
at-linkmon.mib
at-log.mib
at-mac-notification.mib
at-mibversion.mib
at-ntp.mib
at-pluggable-diagnostics.mib
at-product.mib
at-ptp.mib
at-resource.mib
at-setup.mib
at-smi.mib
at-sysinfo.mib
at-trigger.mib
at-ufo.mib
at-user.mib
at-vcstack.mib

mib2zabbixを使う

環境: Ubuntu 26.04 LTS
必要なパッケージをインストールして、GitHub上で配布されているPerlスクリプトを導入します。

$ sudo apt install perl libxml-simple-perl libsnmp-perl snmp snmp-mibs-downloader
$ sudo mkdir ~/bin
$ sudo curl -sL -o ~/bin/mib2zabbix https://raw.githubusercontent.com/cavaliercoder/mib2zabbix/master/mib2zabbix.pl
$ sudo chmod +x ~/bin/mib2zabbix

必要なMIBを追加します。

$ curl -o /usr/share/snmp/mibs/ianastoragemediatype-mib https://www.iana.org/assignments/ianastoragemediatype-mib/ianastoragemediatype-mib
$ curl -o /usr/share/snmp/mibs/ianasmf-mib https://www.iana.org/assignments/ianasmf-mib/ianasmf-mib
$ curl -o /usr/share/snmp/mibs/ianapowerstateset-mib https://www.iana.org/assignments/ianapowerstateset-mib/ianapowerstateset-mib
$ curl -o /usr/share/snmp/mibs/ianaolsrv2linkmetrictype-mib https://www.iana.org/assignments/ianaolsrv2linkmetrictype-mib/ianaolsrv2linkmetrictype-mib
$ curl -o /usr/share/snmp/mibs/ianaenergyrelation-mib https://www.iana.org/assignments/ianaenergyrelation-mib/ianaenergyrelation-mib
$ curl -o /usr/share/snmp/mibs/ianabfdtcstd-mib https://www.iana.org/assignments/ianabfdtcstd-mib/ianabfdtcstd-mib
$ curl -o /usr/share/snmp/mibs/ieee8021-cfm-mib https://www.ieee802.org/1/files/public/MIBs/IEEE8021-CFM-MIB-202211080000Z.mib
$ curl -o /usr/share/snmp/mibs/lldp-mib https://www.ieee802.org/1/files/public/MIBs/LLDP-MIB-200505060000Z.mib
$ curl -o /usr/share/snmp/mibs/ieee8021-tc-mib https://www.ieee802.org/1/files/public/MIBs/IEEE8021-TC-MIB-202211080000Z.mib
$ curl -o /usr/share/snmp/mibs/ietf/SNMPv2-PDU https://pastebin.com/raw/p3QyuXzZ

/usr/share/snmp/mibs/以下に先ほどの拡張MIBを投入します。
また、投入したMIBを認識できるように定義ファイルを変更します。

/etc/snmp/snmp.conf
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
- mibs:
+ mibs all

テンプレートを出力してもらいます。1.3.6.1.4.1.207はAllied Telesisのエンタープライズ機器のOIDのうち最も上位のものです。

$ snmptranslate -Tz | ~/bin/mib2zabbix -o 1.3.6.1.4.1.207 -f Allied-Telesis_awplus.xml -N Allied-Telesis_awplus -e

テンプレートの調整

作成したテンプレートをZabbixにインポートして、MIBのガイドや仮適用して得られるデータを見ながら必要そうなアイテムとディスカバリのみを残していきます。
image.png
必要なトリガーを定義していきます。
image.png
トリガーのプロトタイプも定義していきます。
image.png
実際にできたものがこちらです。
見たいものが見れればOKで調整したので、内容の過不足についてはご容赦いただきたく……

実際に使う

x530Lに以下の設定を投入しておきます。(アクセス制御はhardware-access-listでやっています。詳細は別記事に書きます)

snmp-server
snmp-server group snmpgroup priv read snmpview
snmp-server view snmpview 1.3.6.1 included
snmp-server user snmpuser snmpgroup encrypted auth sha-256 <authpass> priv aes <privpass>

Zabbixでは先ほどのテンプレートに加えて「Network Generic Device by SNMP」を指定した上でホストを定義します。
スクリーンショット 2026-06-14 181113.png
正常に監視が開始できました。
image.png

参考文献

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?