From 2d1e8966036c60be4dc7867a4909d84d3c2c8d7b Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 13:34:27 -0300 Subject: [PATCH 1/7] Update create_host.yaml --- actions/create_host.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actions/create_host.yaml b/actions/create_host.yaml index a28fa61..fecbf42 100644 --- a/actions/create_host.yaml +++ b/actions/create_host.yaml @@ -15,9 +15,8 @@ parameters: description: HostGroups to be registered to creating host required: True ipaddrs: - type: array + type: string description: IP addresses of the host in which ZabbixAgent is installed - default: [] domains: type: array description: Domain names of the host in which ZabbixAgent is installed From fd475c5bacb3e1acdc930e201eb457aa5bb8831a Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 13:35:13 -0300 Subject: [PATCH 2/7] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92f54fd..15647d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log +## 1.0.1 + +- change create_host.yaml host as a string ## 1.0.0 From ed62c34b56d18fc1fbbc1521b9c6ae454827dc46 Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 13:35:33 -0300 Subject: [PATCH 3/7] Update pack.yaml --- pack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.yaml b/pack.yaml index 75deae3..49a9a1f 100644 --- a/pack.yaml +++ b/pack.yaml @@ -5,7 +5,7 @@ description: Zabbix Monitoring System keywords: - zabbix - monitoring -version: 1.0.0 +version: 1.0.1 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com python_versions: From e183190afc15e655b9c496ab3e493e8448345e77 Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 13:56:21 -0300 Subject: [PATCH 4/7] Update create_host.py --- actions/create_host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/create_host.py b/actions/create_host.py index 8be6026..671e4b8 100644 --- a/actions/create_host.py +++ b/actions/create_host.py @@ -17,7 +17,7 @@ def get_interface_config_with_domain(self, domains, main_if): return [self.get_interface_config(domain=x, is_main=(x == main_if)) for x in domains] def get_interface_config_with_ipaddr(self, ipaddrs, main_if): - return [self.get_interface_config(ipaddr=x, is_main=(x == main_if)) for x in ipaddrs] + return [self.get_interface_config(ipaddrs) def set_proxy_for_host(self, proxy_name, new_hosts): for proxy in self.client.proxy.get(filter={'host': proxy_name}): @@ -28,7 +28,7 @@ def set_proxy_for_host(self, proxy_name, new_hosts): 'hosts': current_hosts + new_hosts, }) - def run(self, name, groups, ipaddrs=[], domains=[], proxy_host=None, token=None, main_if=''): + def run(self, name, groups, ipaddrs, domains=[], proxy_host=None, token=None, main_if=''): # Initialize client object to connect Zabbix server if token: self.client = ZabbixAPI(url=self.config['zabbix']['url']) From fd935283884ba9bc2dfe64daab57c8c4c4797d5b Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 13:56:52 -0300 Subject: [PATCH 5/7] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15647d6..bbb24c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log +## 1.0.2 + +- change create_host.py host as a string ## 1.0.1 - change create_host.yaml host as a string From 22dc699c25b0a19a059e37d587d3fdb2cd004d82 Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 13:57:05 -0300 Subject: [PATCH 6/7] Update pack.yaml --- pack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.yaml b/pack.yaml index 49a9a1f..44fc43d 100644 --- a/pack.yaml +++ b/pack.yaml @@ -5,7 +5,7 @@ description: Zabbix Monitoring System keywords: - zabbix - monitoring -version: 1.0.1 +version: 1.0.2 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com python_versions: From ea4f09e69cbaa856fde0605d430f7b5a073d8f20 Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Wed, 11 Oct 2023 14:03:53 -0300 Subject: [PATCH 7/7] Update create_host.py --- actions/create_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/create_host.py b/actions/create_host.py index 671e4b8..25af4a1 100644 --- a/actions/create_host.py +++ b/actions/create_host.py @@ -17,7 +17,7 @@ def get_interface_config_with_domain(self, domains, main_if): return [self.get_interface_config(domain=x, is_main=(x == main_if)) for x in domains] def get_interface_config_with_ipaddr(self, ipaddrs, main_if): - return [self.get_interface_config(ipaddrs) + return [self.get_interface_config(ipaddrs)] def set_proxy_for_host(self, proxy_name, new_hosts): for proxy in self.client.proxy.get(filter={'host': proxy_name}):