openNMS从DNS服务器获取节点

时间:2014-02-24 21:00:16

标签: opennms

我正在尝试使用openNMS(v1.12)从DNS服务器获取节点列表。 首先,我尝试使用requisition-def在我的provisiond-configuration.xml中添加dns://mydnsServerIP/myZone,然后执行:

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

避免重启。什么都没发生。

以下,我尝试在管理页面的configure discovery网址中添加dns网址。保存后,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服务器自动发现节点?

提前致谢!

1 个答案:

答案 0 :(得分:2)

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

dig -t AXFR @<dnsServer> <zone>

如果失败,配置将失败。

您还需要先创建配置组。

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