mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
5e38c81eb5
commit
b7cdd1b3a5
@ -53,10 +53,10 @@ for plugin in plugins:
|
|||||||
print(" import \"snmp-extend-service\",")
|
print(" import \"snmp-extend-service\",")
|
||||||
print()
|
print()
|
||||||
print(" check_command = \"snmp-extend\",")
|
print(" check_command = \"snmp-extend\",")
|
||||||
print(" macros.community = \"%s\"," % (community))
|
print(" vars.community = \"%s\"," % (community))
|
||||||
print(" macros.plugin = \"%s\"," % (plugin))
|
print(" vars.plugin = \"%s\"," % (plugin))
|
||||||
print()
|
print()
|
||||||
print(" assign where host.macros.address == \"%s\"" % (ipaddr))
|
print(" assign where host.vars.address == \"%s\"" % (ipaddr))
|
||||||
print("}")
|
print("}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ def print_host(host):
|
|||||||
print "object Host \"%s\" {" % (host["name"])
|
print "object Host \"%s\" {" % (host["name"])
|
||||||
print "\timport \"discovered-host\","
|
print "\timport \"discovered-host\","
|
||||||
print ""
|
print ""
|
||||||
print "\tmacros.address = \"%s\"," % (host["address"])
|
print "\tvars.address = \"%s\"," % (host["address"])
|
||||||
print "}"
|
print "}"
|
||||||
print ""
|
print ""
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ def print_host(host):
|
|||||||
print ""
|
print ""
|
||||||
print "\tcheck_command = \"%s\"," % (service["command"])
|
print "\tcheck_command = \"%s\"," % (service["command"])
|
||||||
print ""
|
print ""
|
||||||
print "\tmacros.port = %s" % (service["port"])
|
print "\tvars.port = %s" % (service["port"])
|
||||||
print "}"
|
print "}"
|
||||||
print ""
|
print ""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user