-
dvr=192.168.150.242:8089
-
hostHealthcheck=0
-
[[ 0 == 0 ]]
-
hostHealthcheck=
++ echo 192.168.150.242:8089
++ awk -F: '{print $1}'
-
channelsHost=192.168.150.242
++ echo 192.168.150.242:8089
++ awk -F: '{print $2}'
-
channelsPort=8089
-
logFile=/config/192.168.150.242-8089_healthcheck-olivetin_latest.log
-
healthcheck=/config/fifopipe_containerside.sh
-
main
-
containerHealthcheck
-
echo -e 'Checking your OliveTin-for-Channels installation...'
-
[[ -n '' ]]
-
echo -e '(extended_check=false)\n'
++ grep pageTitle: /config/config.yaml
++ awk '{print $3}'
-
olivetinVersion=2025.07.02
-
echo -e 'OliveTin Container Version 2025.07.02'
-
echo -e 'OliveTin Docker Compose Version \n'
-
echo -e '----------------------------------------\n'
-
echo -e 'Checking that your selected Channels DVR server (192.168.150.242:8089) is reachable by URL:'
-
echo -e 'HTTP Status: 200 indicates success...\n'
++ curl --fail --output /dev/null --max-time 5 -w 'HTTP Status: %{http_code}\nEffective URL: %{url_effective}\n' http://192.168.150.242:8089
-
curlDVR=' % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1276 100 1276 0 0 113k 0 --:--:-- --:--:-- --:--:-- 113k
HTTP Status: 200
Effective URL: http://192.168.150.242:8089/'
-
echo -e ' % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1276 100 1276 0 0 113k 0 --:--:-- --:--:-- --:--:-- 113k
HTTP Status: 200
Effective URL: http://192.168.150.242:8089/\n'
-
echo -e '----------------------------------------\n'
-
echo -e 'Checking that your selected Channels DVR server'''s data files (/mnt/192.168.150.242-8089) are accessible:'
-
echo -e 'Folders with the names Database, Images, Imports, Logs, Movies, Streaming and TV should be visible...\n'
-
ls -la /mnt/192.168.150.242-8089
-
echo -e '\nIf the listed folders are NOT visible, AND you have your Channels DVR and Docker on the same system:\n'
-
echo -e 'Channels reports this path as...'
++ curl -s http://192.168.150.242:8089/dvr
++ jq -r .path
++ tee -a /config/192.168.150.242-8089_healthcheck-olivetin_latest.log
-
dvrShare='/Volumes/External Drive/Channels DVR'
-
[[ /Volumes/External Drive/Channels DVR == \ ]]
-
windowsOS=
-
[[ -n '' ]]
-
[[ -n '' ]]
-
echo -e '\n----------------------------------------\n'
-
echo -e 'Checking that your selected Channels DVR server'''s log files (/mnt/192.168.150.242-8089_logs) are accessible:'
-
echo -e 'Folders with the names data and latest should be visible...\n'
-
ls -la /mnt/192.168.150.242-8089_logs
-
echo -e '\nIf the listed folders are NOT visible, AND you have your Channels DVR and Docker on the same system:\n'
-
echo -e 'Channels reports this path as...'
++ grep -m 1 'Starting Channels DVR'
++ awk '{print $NF}'
++ awk '{sub(/[\/]?data$/, ""); print}'
++ curl -s 'http://192.168.150.242:8089/log?n=100000'
++ tee -a /config/192.168.150.242-8089_healthcheck-olivetin_latest.log
-
logsShare=Support/ChannelsDVR
-
[[ Support/ChannelsDVR == \ ]]
-
windowsOS=
-
[[ -n '' ]]
-
[[ -n '' ]]
-
echo -e '\n----------------------------------------\n'
-
echo -e 'Checking if your Portainer token is working on ports 9000 and/or 9443:\n'
-
[[ -z 9443 ]]
-
portainerPort=9443
++ curl -s -k --max-time 3 -H 'Authorization: Bearer ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c=' http://192.168.150.242:9000/api/status
++ jq -r .Version
-
echo 'Portainer http response on port 9000 reports version 2.16.2'
++ curl -s -k -X GET --max-time 3 -H 'X-API-Key: ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c=' http://192.168.150.242:9000/api/endpoints
++ jq '.[] | select(.Name=="local") | .Id'
jq: error (at :1): Cannot index string with string "Name"
-
echo 'Portainer Environment ID for local is '
++ curl -s -k --max-time 3 -H 'Authorization: Bearer ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c=' https://192.168.150.242:9443/api/status
++ jq -r .Version
-
echo 'Portainer https response on port 9443 reports version '
++ curl -s -k -X GET --max-time 3 -H 'X-API-Key: ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c=' https://192.168.150.242:9443/api/endpoints
++ jq '.[] | select(.Name=="local") | .Id'
-
echo 'Portainer Environment ID for local is '
-
echo -e '\n----------------------------------------\n'
-
echo -e 'Here'''s a list of your current OliveTin-related settings:\n'
-
echo HOSTNAME=olivetin
-
echo CHANNELS_DVR=192.168.150.242:8089
-
echo CHANNELS_DVR_ALTERNATES=
-
echo 'CHANNELS_CLIENTS=192.168.150.231 192.168.150.194 146.12.197.19 192.168.150.177'
-
echo ALERT_SMTP_SERVER=smtp.gmail.com:587
-
echo [email protected]
-
awk -F@ '{print "ALERT_EMAIL_FROM=[Redacted]@" $2}'
-
[[ -n ALERT_EMAIL_PASS ]]
-
echo 'ALERT_EMAIL_PASS=[Redacted]'
-
echo [email protected]
-
awk -F@ '{print "ALERT_EMAIL_TO=[Redacted]@" $2}'
-
echo UPDATE_YAMLS=true
-
echo UPDATE_SCRIPTS=true
-
[[ -n ptr_TP3q1aaHghJfhw94AMoa6ulP04EI93wfbogZlsKSb3c= ]]
-
echo 'PORTAINER_TOKEN=[Redacted]'
-
echo PORTAINER_HOST=192.168.150.242
-
echo PORTAINER_PORT=9443
-
echo PORTAINER_ENV=
-
echo -e '\n----------------------------------------\n'
-
echo -e 'Here'''s the contents of /etc/resolv.conf from inside the container:\n'
-
sed 's/tail.*.ts.net/tail[Redacted].ts.net/' /etc/resolv.conf
-
echo -e '\n----------------------------------------\n'
-
echo -e 'Here'''s the contents of /etc/hosts from inside the container:\n'
-
cat /etc/hosts
-
[[ -n '' ]]
-
[[ -n '' ]]
-
[[ -n '' ]]
-
cat /config/192.168.150.242-8089_healthcheck-olivetin_latest.log