Compare commits
2 commits
edebd1588f
...
78d2499b46
Author | SHA1 | Date | |
---|---|---|---|
![]() |
78d2499b46 | ||
![]() |
7582e8d9cc |
2 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@ def nginx(metadata):
|
|||
'context': {
|
||||
'target': 'http://127.0.0.1:4000',
|
||||
},
|
||||
'check_path': '/status',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue