diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-23 20:20:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 20:20:12 +0200 |
commit | f25e1c9fa166c22d2a329ae435ae8be4f80985ef (patch) | |
tree | 670c37b6fbb95f7b0a390cdd7a7471c503d078f8 /smoketest | |
parent | 7659c452f8d390773e48e5873552bde601e2fbca (diff) | |
parent | 661fa646915907c0f909b8e79c51fbb2f455007b (diff) | |
download | vyos-1x-f25e1c9fa166c22d2a329ae435ae8be4f80985ef.tar.gz vyos-1x-f25e1c9fa166c22d2a329ae435ae8be4f80985ef.zip |
Merge pull request #2160 from sever-sever/T5448
T5448: Add configuration host-name for zabbix-agent
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_service_monitoring_zabbix-agent.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_monitoring_zabbix-agent.py b/smoketest/scripts/cli/test_service_monitoring_zabbix-agent.py index 7cc661688..cb5f84406 100755 --- a/smoketest/scripts/cli/test_service_monitoring_zabbix-agent.py +++ b/smoketest/scripts/cli/test_service_monitoring_zabbix-agent.py @@ -50,6 +50,7 @@ class TestZabbixAgent(VyOSUnitTestSHIM.TestCase): port = '10050' timeout = '5' listen_ip = '0.0.0.0' + hostname = 'r-vyos' self.cli_set(base_path + ['directory', directory]) self.cli_set(base_path + ['limits', 'buffer-flush-interval', buffer_send]) @@ -61,6 +62,7 @@ class TestZabbixAgent(VyOSUnitTestSHIM.TestCase): for server_active, server_config in servers_active.items(): self.cli_set(base_path + ['server-active', server_active, 'port', server_config['port']]) self.cli_set(base_path + ['timeout', timeout]) + self.cli_set(base_path + ['host-name', hostname]) # commit changes self.cli_commit() @@ -80,6 +82,7 @@ class TestZabbixAgent(VyOSUnitTestSHIM.TestCase): self.assertIn(f'BufferSize={buffer_size}', config) self.assertIn(f'Include={directory}/*.conf', config) self.assertIn(f'Timeout={timeout}', config) + self.assertIn(f'Hostname={hostname}', config) if __name__ == '__main__': |