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': {
|
'context': {
|
||||||
'target': 'http://127.0.0.1:4000',
|
'target': 'http://127.0.0.1:4000',
|
||||||
},
|
},
|
||||||
|
'check_path': '/status',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -123,7 +123,7 @@ def monitoring(metadata):
|
||||||
'monitoring': {
|
'monitoring': {
|
||||||
'services': {
|
'services': {
|
||||||
f'HTTP {hostname}': {
|
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()
|
for hostname, vhost in metadata.get('nginx/vhosts').items()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue