diff --git a/src/modules/kubernetes/base/cronjobs.py b/src/modules/kubernetes/base/cronjobs.py index e109b57..0b6a83e 100644 --- a/src/modules/kubernetes/base/cronjobs.py +++ b/src/modules/kubernetes/base/cronjobs.py @@ -90,7 +90,7 @@ def zabbixDiscoveryCronjobs(config): output = { "{#KUBERNETES_CRONJOB_NAMESPACE}": cronjob['namespace'], "{#KUBERNETES_CRONJOB_NAME}": cronjob['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.cronjobs.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/base/daemonsets.py b/src/modules/kubernetes/base/daemonsets.py index afbdec3..102ce38 100644 --- a/src/modules/kubernetes/base/daemonsets.py +++ b/src/modules/kubernetes/base/daemonsets.py @@ -57,7 +57,7 @@ def zabbixDiscoveryDaemonsets(config): output = { "{#KUBERNETES_DAEMONSET_NAMESPACE}": daemonset['namespace'], "{#KUBERNETES_DAEMONSET_NAME}": daemonset['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.daemonsets.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/base/deployments.py b/src/modules/kubernetes/base/deployments.py index 6bf344e..2b8c4d1 100644 --- a/src/modules/kubernetes/base/deployments.py +++ b/src/modules/kubernetes/base/deployments.py @@ -56,7 +56,7 @@ def zabbixDiscoveryDeployments(config): output = { "{#KUBERNETES_DEPLOYMENT_NAMESPACE}": deployment['namespace'], "{#KUBERNETES_DEPLOYMENT_NAME}": deployment['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.deployments.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/base/nodes.py b/src/modules/kubernetes/base/nodes.py index e016a27..2babf91 100644 --- a/src/modules/kubernetes/base/nodes.py +++ b/src/modules/kubernetes/base/nodes.py @@ -56,7 +56,7 @@ def zabbixDiscoveryNodes(config): for node in kubernetesGetNodes(config): output = {"{#KUBERNETES_NODE_NAME}": node['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.nodes.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/base/statefulsets.py b/src/modules/kubernetes/base/statefulsets.py index a3c5166..8dbdc35 100644 --- a/src/modules/kubernetes/base/statefulsets.py +++ b/src/modules/kubernetes/base/statefulsets.py @@ -56,7 +56,7 @@ def zabbixDiscoveryStatefulsets(config): output = { "{#KUBERNETES_STATEFULSET_NAMESPACE}": statefulset['namespace'], "{#KUBERNETES_STATEFULSET_NAME}": statefulset['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.statefulsets.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/base/volumes.py b/src/modules/kubernetes/base/volumes.py index 0c98f2b..429032d 100644 --- a/src/modules/kubernetes/base/volumes.py +++ b/src/modules/kubernetes/base/volumes.py @@ -65,7 +65,7 @@ def zabbixDiscoveryVolumes(config): output = { "{#KUBERNETES_PVC_NAMESPACE}": volume['namespace'], "{#KUBERNETES_PVC_NAME}": volume['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.volumes.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/openebs/cstorpoolclusters.py b/src/modules/kubernetes/openebs/cstorpoolclusters.py index a232a42..cc0433d 100644 --- a/src/modules/kubernetes/openebs/cstorpoolclusters.py +++ b/src/modules/kubernetes/openebs/cstorpoolclusters.py @@ -58,7 +58,7 @@ def zabbixDiscoveryCstorpoolclusters(config): output = { "{#KUBERNETES_OPENEBS_CSTORPOOLCLUSTER_NAMESPACE}": cstorpoolcluster['namespace'], "{#KUBERNETES_OPENEBS_CSTORPOOLCLUSTER_NAME}": cstorpoolcluster['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.openebs.cstorpoolclusters.discovery", json.dumps(discovery)] diff --git a/src/modules/kubernetes/openebs/cstorpoolinstances.py b/src/modules/kubernetes/openebs/cstorpoolinstances.py index 4b14ab0..8a86dd7 100644 --- a/src/modules/kubernetes/openebs/cstorpoolinstances.py +++ b/src/modules/kubernetes/openebs/cstorpoolinstances.py @@ -54,7 +54,7 @@ def zabbixDiscoveryCstorpoolinstances(config): output = { "{#KUBERNETES_OPENEBS_CSTORPOOLINSTANCE_NAMESPACE}": cstorpoolinstance['namespace'], "{#KUBERNETES_OPENEBS_CSTORPOOLINSTANCE_NAME}": cstorpoolinstance['name']} - discovery['data'].append(output) + discovery['data'].append([output]) return [config['kubernetes']['name'], "kubernetes.openebs.cstorpoolinstances.discovery", json.dumps(discovery)]