Skip to content

Commit

Permalink
Merge pull request #70 from skafandri/CPCLOUD-4535
Browse files Browse the repository at this point in the history
[CPCLOUD-4535] Update API host and path
  • Loading branch information
ktak-007 authored Nov 18, 2024
2 parents a9af8b9 + d0eab1a commit 37ac292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent360/agent360.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def hello(proto='https'):
except AttributeError:
hostname = socket.getfqdn()
server_id = urlopen(
proto + '://' + agent.config.get('data', 'api_host') + '/hello.php',
proto + '://' + agent.config.get('data', 'hello_api_host') + '/hello',
data=urlencode({
'user': user_id,
'hostname': hostname,
Expand Down Expand Up @@ -328,6 +328,7 @@ def _config_init(self):
'user': '',
'server': '',
'api_host': 'ingest.monitoring360.io',
'hello_api_host': 'api.monitoring360.io',
'api_path': '/v2/server/poll',
'log_file': '/var/log/agent360.log',
'log_file_mode': 'a',
Expand Down

0 comments on commit 37ac292

Please sign in to comment.