File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -380,15 +380,17 @@ def expert_database_view(request, expert_db_name):
380
380
@never_cache
381
381
def website_status_view (request ):
382
382
"""
383
- This view will be monitored by Nagios for the presence
384
- of string "All systems operational".
383
+ This view will be used by Traffic Manager to check for the presence of the
384
+ text "All systems operational". Traffic will be redirected to the HX
385
+ cluster if this function returns a problem. For more information, see the
386
+ vtm-terraform-config project on GitLab (monitors.tf file).
385
387
"""
386
388
387
389
def _is_database_up ():
388
390
try :
389
- rna = Rna .objects .all ()[ 0 ]
391
+ Database .objects .get ( id = 1 )
390
392
return True
391
- except :
393
+ except Database . DoesNotExist :
392
394
return False
393
395
394
396
def _is_api_up ():
You can’t perform that action at this time.
0 commit comments