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