Update the auto-discovery scripts.

Refs #5855
This commit is contained in:
Gunnar Beutner 2014-04-05 13:55:29 +02:00
parent 5e38c81eb5
commit b7cdd1b3a5
2 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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 ""