From b7cdd1b3a53ae30128ffadd653139519765198ed Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 5 Apr 2014 13:55:29 +0200 Subject: [PATCH] Update the auto-discovery scripts. Refs #5855 --- contrib/discover-snmp.py | 6 +++--- contrib/discover.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/discover-snmp.py b/contrib/discover-snmp.py index 61d9c5fb7..c74b17ed4 100755 --- a/contrib/discover-snmp.py +++ b/contrib/discover-snmp.py @@ -53,10 +53,10 @@ for plugin in plugins: print(" import \"snmp-extend-service\",") print() print(" check_command = \"snmp-extend\",") - print(" macros.community = \"%s\"," % (community)) - print(" macros.plugin = \"%s\"," % (plugin)) + print(" vars.community = \"%s\"," % (community)) + print(" vars.plugin = \"%s\"," % (plugin)) print() - print(" assign where host.macros.address == \"%s\"" % (ipaddr)) + print(" assign where host.vars.address == \"%s\"" % (ipaddr)) print("}") print() diff --git a/contrib/discover.py b/contrib/discover.py index a24d35f41..79744acfd 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 "\tmacros.address = \"%s\"," % (host["address"]) + print "\tvars.address = \"%s\"," % (host["address"]) print "}" print "" @@ -119,7 +119,7 @@ def print_host(host): print "" print "\tcheck_command = \"%s\"," % (service["command"]) print "" - print "\tmacros.port = %s" % (service["port"]) + print "\tvars.port = %s" % (service["port"]) print "}" print "" -- 2.40.0