Module: check_mk
Branch: master
Commit: 868bc11f40efef2797139fc284450db3301f42fc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=868bc11f40efef…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Oct 17 09:30:31 2014 +0200
hivemanager_devices: Fixed inventory function
---
checks/hivemanager_devices | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/hivemanager_devices b/checks/hivemanager_devices
index 4f5bd92..8109d54 100644
--- a/checks/hivemanager_devices
+++ b/checks/hivemanager_devices
@@ -42,7 +42,7 @@ factory_settings['hivemanger_devices'] = {
def inventory_hivemanager_devices(info):
for line in info:
infos = dict([ x.split('::') for x in line ])
- yield hostname, {}
+ yield infos['hostName'], {}
def check_hivemanager_devices(item, params, info):
for line in info: