Skip to content

Commit 5b44024

Browse files
authored
Merge pull request #58 from tarabanton/patch-1
Fix discovery data for net plugin
2 parents 404ce57 + 39bb5df commit 5b44024

File tree

1 file changed

+1
-1
lines changed
  • mamonsu/plugins/system/linux

1 file changed

+1
-1
lines changed

mamonsu/plugins/system/linux/net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run(self, zbx):
2626
if item[0] == idx:
2727
key = '{0}[{1}]'.format(item[1], iface)
2828
zbx.send(key, float(value), self.DELTA_SPEED)
29-
devices.append(iface)
29+
devices.append({'{#NETDEVICE}': iface})
3030
zbx.send('system.net.discovery[]', zbx.json({'data': devices}))
3131

3232
def discovery_rules(self, template):

0 commit comments

Comments
 (0)