mirror of https://github.com/Icinga/icinga2.git
parent
4a32ca9123
commit
f1d6d77330
|
@ -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()
|
||||
|
||||
|
|
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue