Compare commits

...

2 commits

Author SHA1 Message Date
mwiegand
78d2499b46 nginx http check uses GET 2022-09-05 15:02:07 +02:00
mwiegand
7582e8d9cc build server htt check path 2022-09-05 15:01:49 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -71,6 +71,7 @@ def nginx(metadata):
'context': {
'target': 'http://127.0.0.1:4000',
},
'check_path': '/status',
},
},
},

View file

@ -123,7 +123,7 @@ def monitoring(metadata):
'monitoring': {
'services': {
f'HTTP {hostname}': {
'vars.command': f"""/usr/bin/curl {quote(hostname + vhost.get('check_path', ''))} -IL --fail"""
'vars.command': f"""/usr/bin/curl -X GET {quote(hostname + vhost.get('check_path', ''))} -IL --fail"""
}
for hostname, vhost in metadata.get('nginx/vhosts').items()
},