Update the SNMP auto-discovery script.

Refs #5870
This commit is contained in:
Gunnar Beutner 2014-03-30 17:00:03 +02:00
parent 2f59aa38a3
commit 8016943592
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ for plugin in plugins:
print(" import \"snmp-extend-service\",")
print()
print(" check_command = \"snmp-extend\",")
print(" macros[\"community\"] = \"%s\"," % (community))
print(" macros.community = \"%s\"," % (community))
print(" macros.plugin = \"%s\"," % (plugin))
print()
print(" assign where host.macros.address == \"%s\"" % (ipaddr))
print("}")