diff --git a/bin/chromebox-watchdog.sh b/bin/chromebox-watchdog.sh index b6aa3cb..4dd187c 100755 --- a/bin/chromebox-watchdog.sh +++ b/bin/chromebox-watchdog.sh @@ -64,8 +64,10 @@ healthy() { local list list="$(cdp_list)" \ || { HEALTH_FAIL_REASON="CDP unreachable on :$CDP_PORT"; return 1; } - echo "$list" | grep -q '"title": ".*Chat' \ - || { HEALTH_FAIL_REASON="CDP up but no Chat page in target list"; return 1; } + echo "$list" | grep -q '"type": "page"' \ + || { HEALTH_FAIL_REASON="CDP up but no page target in list"; return 1; } + echo "$list" | grep -E -q '"url": "https://muse\.ai' \ + || { HEALTH_FAIL_REASON="CDP up but not on muse.ai"; return 1; } return 0 }