0

我正在尝试让 openNMS (v1.12) 从 DNS 服务器获取节点列表。首先,我尝试添加requisition-defprovisiond-configuration.xml的 withdns://mydnsServerIP/myZone和以下,我执行:

/opt/opennms/bin/send-event.pl uei.opennms.org/internal/reloadDaemonConfig --parm 'daemonName Provisiond'

以避免重新启动。没啥事儿。

接下来,我尝试configure discovery在管理页面的 URL 中添加 dns URL。保存后,discovery.log开始有这样的条目:

2014-02-24 20:54:53,919 WARN  [OpenNMS.Discovery-Thread] DiscoveryConfigFactory: 
Unknown host '<node building="MYZONE_HERE" foreign-id="520105224" 
node-label="CORRECTNODELABEL_HERE">' inside discovery include file: 
address ignored

2014-02-24 20:54:53,920 WARN  [OpenNMS.Discovery-Thread] DiscoveryConfigFactory: 
Unknown host '<interface descr="DNS-AAAA" ip-addr="IPV6_HERE" managed="true" status="1"     
snmp-primary="P">' inside discovery include file: address ignored

2014-02-24 20:54:53,922 WARN  [OpenNMS.Discovery-Thread] DiscoveryConfigFactory: 
Unknown host '<monitored-service service-name="SNMP"/>' inside discovery include 
file: address ignored

2014-02-24 20:54:53,925 WARN  [OpenNMS.Discovery-Thread] DiscoveryConfigFactory: 
Unknown host '<monitored-service service-name="ICMP"/>' inside discovery include 
file: address ignored

2014-02-24 20:54:53,927 WARN  [OpenNMS.Discovery-Thread] DiscoveryConfigFactory: 
Unknown host '</interface>' inside discovery include file: address ignored
2014-02-24 20:54:53,929 WARN  [OpenNMS.Discovery-Thread] DiscoveryConfigFactory: 
Unknown host '</node>' inside discovery include file: address ignored

我还需要做什么才能让它从 DNS 服务器自动发现节点?

提前致谢!

4

1 回答 1

2

必须允许通过 DNS 导入启动配置的 OpenNMS 服务器执行区域传输。您可以从 OpenNMS 服务器控制台使用以下内容对其进行测试。

dig -t AXFR @<dnsServer> <zone>

如果失败,则配置将失败。

您还需要先创建一个配置组。

在此处查看更多信息:http ://www.opennms.org/wiki/DNS_Importing

于 2014-02-28T11:01:40.567 回答