差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:librenms:bind_agent [2020/07/06 18:12] – 建立 jonathan_tsai | tech:librenms:bind_agent [2021/01/16 14:41] (目前版本) – 更換 plugin jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 安裝 BIND(Named) Agent 的方式 ====== | ||
+ | * 返回 [[tech: | ||
+ | * 這是 SNMP Extend | ||
+ | |||
+ | * named 服務的執行 user:group 是 named:named | ||
+ | |||
+ | * 至 bind/named 主機內安裝 <code sh> | ||
+ | mkdir -p / | ||
+ | touch / | ||
+ | chown -R named:named / | ||
+ | vi / | ||
+ | : | ||
+ | options { | ||
+ | ... | ||
+ | statistics-file "/ | ||
+ | zone-statistics yes; | ||
+ | ... | ||
+ | }; | ||
+ | : | ||
+ | </ | ||
+ | systemctl restart named</ | ||
+ | * 執行檢查是否正確< | ||
+ | rndc stats && cat / | ||
+ | </ | ||
+ | +++ Statistics Dump +++ (1594029813) | ||
+ | ++ Incoming Requests ++ | ||
+ | 392 QUERY | ||
+ | ++ Incoming Queries ++ | ||
+ | 122 A | ||
+ | 4 MX | ||
+ | 99 TXT | ||
+ | 167 AAAA | ||
+ | ++ Outgoing Rcodes ++ | ||
+ | 392 NOERROR | ||
+ | ++ Outgoing Queries ++ | ||
+ | [View: internal] | ||
+ | 531 A | ||
+ | : | ||
+ | : | ||
+ | [8.B.D.0.1.0.0.2.IP6.ARPA (view: external)] | ||
+ | [EMPTY.AS112.ARPA (view: external)] | ||
+ | [HOME.ARPA (view: external)] | ||
+ | [version.bind (view: _bind)] | ||
+ | [hostname.bind (view: _bind)] | ||
+ | [authors.bind (view: _bind)] | ||
+ | [id.server (view: _bind)] | ||
+ | --- Statistics Dump --- (1594029813) | ||
+ | </ | ||
+ | * 安裝 bind agent <code sh> | ||
+ | yum install epel-release | ||
+ | yum install perl-File-ReadBackwards | ||
+ | wget https:// | ||
+ | chmod +x / | ||
+ | / | ||
+ | </ | ||
+ | 1062, | ||
+ | 1148, | ||
+ | 2713, | ||
+ | 610, | ||
+ | 14523, | ||
+ | 1259, | ||
+ | 3063, | ||
+ | 529, | ||
+ | </ | ||
+ | * 修改 snmpd 設定< | ||
+ | vi / | ||
+ | : | ||
+ | extend bind / | ||
+ | </ | ||
+ | systemctl restart snmpd | ||
+ | </ | ||
+ | |||
+ | ===== 參考網址 ===== | ||
+ | * https:// | ||
+ | |||
+ | {{tag> |