diff --git a/contrib/discover-snmp.py b/contrib/discover-snmp.py index a7dec81fe..61d9c5fb7 100755 --- a/contrib/discover-snmp.py +++ b/contrib/discover-snmp.py @@ -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("}")