We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7efb43 commit de36eddCopy full SHA for de36edd
mamonsu/lib/plugin.py
@@ -177,7 +177,10 @@ def _loop(self):
177
# convert zabbix key to right type: zabbix-trapper or zabbix-agent
178
def right_type(self, key, var="", var_discovery=""):
179
if self.Type == "mamonsu":
180
- new_key = key.format('[{0}{1}]'.format(var, var_discovery[:-1]))
+ if len(var_discovery) == 0:
181
+ new_key = key.format('[{0}]'.format(var))
182
+ else:
183
+ new_key = key.format('[{0}{1}]'.format(var, var_discovery[:-1]))
184
else:
185
if self.AgentPluginType == 'sys':
186
if var_discovery != "":
0 commit comments