From f1d6d77330bf0129a1dc1947e7740acea9f6b7b0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 8 Apr 2014 17:20:10 +0200 Subject: [PATCH] Update the auto-discovery scripts. Refs #5856 --- contrib/discover-snmp.py | 2 +- contrib/discover.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/discover-snmp.py b/contrib/discover-snmp.py index c74b17ed4..3372ace8d 100755 --- a/contrib/discover-snmp.py +++ b/contrib/discover-snmp.py @@ -56,7 +56,7 @@ for plugin in plugins: print(" vars.community = \"%s\"," % (community)) print(" vars.plugin = \"%s\"," % (plugin)) print() - print(" assign where host.vars.address == \"%s\"" % (ipaddr)) + print(" assign where host.address == \"%s\"" % (ipaddr)) print("}") print() diff --git a/contrib/discover.py b/contrib/discover.py index 79744acfd..183f4d163 100755 --- a/contrib/discover.py +++ b/contrib/discover.py @@ -109,7 +109,7 @@ def print_host(host): print "object Host \"%s\" {" % (host["name"]) print "\timport \"discovered-host\"," print "" - print "\tvars.address = \"%s\"," % (host["address"]) + print "\taddress = \"%s\"," % (host["address"]) print "}" print ""