|
|
@ -1088,18 +1088,18 @@ get_watchdog_status_code_live() {
|
|
|
|
local COMBINED_STATUS="$NS_STATUS $DB_STATUS"
|
|
|
|
local COMBINED_STATUS="$NS_STATUS $DB_STATUS"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$COMBINED_STATUS" = "running running" ]; then
|
|
|
|
if [ "$COMBINED_STATUS" = "running running" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
status="detection_failed"
|
|
|
|
status="detection_failed"
|
|
|
|
|
|
|
|
|
|
|
|
local domain=$cachedMenuDomain
|
|
|
|
local domain=$cachedMenuDomain
|
|
|
|
local cachedDomainLen=${#cachedMenuDomain}
|
|
|
|
local cachedDomainLen=${#cachedMenuDomain}
|
|
|
|
if ((cachedDomainLen < 16)); then
|
|
|
|
if ((cachedDomainLen < 16)); then
|
|
|
|
domain=$(get_td_domain)
|
|
|
|
domain=$(get_td_domain)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
local domainLen=${#domain}
|
|
|
|
local domainLen=${#domain}
|
|
|
|
if ((domainLen > 15)); then
|
|
|
|
if ((domainLen > 15)); then
|
|
|
|
cachedMenuDomain=$domain
|
|
|
|
cachedMenuDomain=$domain
|
|
|
|
local html=$(curl -Lks "$domain")
|
|
|
|
local html=$(curl -Lks "$domain")
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$html" =~ github.com/nightscout/cgm-remote-monitor ]]; then
|
|
|
|
if [[ "$html" =~ github.com/nightscout/cgm-remote-monitor ]]; then
|
|
|
@ -1180,12 +1180,18 @@ show_watchdog_logs() {
|
|
|
|
get_watchdog_age_string
|
|
|
|
get_watchdog_age_string
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
|
|
|
|
|
|
|
|
echo "Statusy ostatnich przebiegów watchdoga:"
|
|
|
|
if [[ -f $WATCHDOG_LOG_FILE ]]; then
|
|
|
|
tail -5 "$WATCHDOG_LOG_FILE"
|
|
|
|
echo "Statusy ostatnich przebiegów watchdoga:"
|
|
|
|
|
|
|
|
tail -5 "$WATCHDOG_LOG_FILE"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Brak logów z ostatnich przebiegów watchdoga"
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
echo "-------------------------------------------------------"
|
|
|
|
|
|
|
|
|
|
|
|
echo "Log ostatniego przebiegu watchdoga:"
|
|
|
|
if [[ -f $WATCHDOG_CRON_LOG ]]; then
|
|
|
|
cat "$WATCHDOG_CRON_LOG"
|
|
|
|
echo "Log ostatniego przebiegu watchdoga:"
|
|
|
|
|
|
|
|
cat "$WATCHDOG_CRON_LOG"
|
|
|
|
|
|
|
|
fi
|
|
|
|
} >"$tmpfile"
|
|
|
|
} >"$tmpfile"
|
|
|
|
|
|
|
|
|
|
|
|
whiptail --title "Logi Watchdoga" --scrolltext --textbox "$tmpfile" $rws $col
|
|
|
|
whiptail --title "Logi Watchdoga" --scrolltext --textbox "$tmpfile" $rws $col
|
|
|
|