@OutagesIO_Support don't worry about it. I have gotten way better customer support for this "free" product than i get for most paid products. I will be promoting your services to my data center pals that manage the centers.
beeglej
Track Internet disconnections, provider outages with historical data, and automated speed testing.
For Windows, Linux, ARM64, ARMa7. Learn more by visiting www.outagesio.com
Notice: If you created an account on app.outagesio.com, simply use the same credentials to log in here.
Posts
-
Install infinite loop -
Install infinite loopNow while trying to start the service I get the following output in the terminal after following the instructions and commenting out the line in the script:
ā otm.service - Startup of the OutagesIO monitoring agent
Loaded: loaded (/etc/systemd/system/otm.service; enabled; vendor preset: enab
Active: activating (auto-restart) (Result: exit-code) since Thu 2022-02-17 23
Process: 9592 ExecStartPre=/agent/starter_aarch64_ocp.sh (code=exited, status=
lines 1-4/4 (END)...skipping...
ā otm.service - Startup of the OutagesIO monitoring agent
Loaded: loaded (/etc/systemd/system/otm.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2022-02-17 23:14:25 GMT; 2s ago
Process: 9592 ExecStartPre=/agent/starter_aarch64_ocp.sh (code=exited, status=203/EXEC)any ideas?
-
Install infinite loop@OutagesIO_Support I finally got it to work. Now I just have to troubleshoot getting the systemctl service up and going.
-
Install infinite loop@OutagesIO_Support Sounds like a plan. Even though its not great that it is broken right now, I'm glad I am not totally crazy
-
Install infinite loop@SBK the script is in /agent/starter_aarch64_ocp.sh
I have also ran the chmod 755 on the file to give it permissions
Which the start="/agent"
-
Install infinite loop@SBK Yes wget returns and downloads the file
-
Install infinite loop@SBK I shouldn't have any limitations imposed by my isp.
As far as a firewall, I don't really have one active for this device. The router has a firewall but this device is exempt. This device is a raspberry pi 4 and is also used to run Pi-Hole. I disabled the filtering to download the script and it still won't work. I am wondering now if the Pi-Hole cannot provide DNS for itself. I will readjust the network settings so the device is not asking itself for DNS.
My other question is the script seems to be trying to download the otm from foxymon.com. In the post above it
@OutagesIO_Support said in Install infintie loop:I think it's supposed to be this.
ARM based agentthe website in his post is downloads.outagesio.com/otm/otm_1.62.206_arm which isn't the same. Unless the foxymon website is just forwarding a new file. But, when i navigate to the address in the script it loads an empty page when I inspect the page.
-
Install infinite loop@SBK Yes. Because when I didn't it told the username and password was incorrect. When I ran the script
-
Install infinite loop@SBK Here is the script I am using
# starter_aarch64_ocp.sh #!/bin/bash #Version 1.0.3 # Enter the full path where you will be placing the starter_aarch64.sh script into. # Our example shows '/agent', change this to what ever your path is. start="/agent" command -v curl >/dev/null 2>&1 || { echo >&2 "The curl package is needed but not installed. Please install it and try again. Aborting."; exit 1; } echo "" echo "Make sure to create /etc/agentid with credentials before starting this script" echo "Make sure your starter file points to the same directory that you have it in - Edit the 'start' option above accordingly" echo "You could add this to /etc/rc.local to start it or build a service for it. Please search Google for more." echo "" sleep 5 ### Define Global Variables OTMIN="otm" IN="$start/updater_aarch64_ocp.sh" DATE=`date +%d-%m-%y` OTM_COMMAND="otm_aarch64" USERNAME=`awk 'NR==1' /etc/agentid` PASSWORD=`awk 'NR==2' /etc/agentid` ### OTM section # Get rid of any old version rm -f $start/otm_aarch64 OTM_HTTP_STATUS='' OTM_REMOTE_LENGTH='' ### Loop until [[ ${OTM_HTTP_STATUS} -eq 200 && ! -z ${OTM_REMOTE_LENGTH} ]] do sleep 5 ## echo "Receiving binary location" BINARY_LOCATION=$(curl -m 20 -s -u $USERNAME:$PASSWORD --connect-timeout 10 -X POST https://www.foxymon.com/receiver/receiver2.php -F function=receive_binary_location) echo "Getting the OTM Package" curl -I -m 30 --connect-timeout 15 "$BINARY_LOCATION" -o $start/otminfo.log OTM_HTTP_STATUS=$(cat $start/otminfo.log | awk '/HTTP/ {print $2}') OTM_REMOTE_LENGTH=$( cat $start/otminfo.log | awk '/Content-Length/ {print $2}' | sed -e 's/[\r\n]//g' ) done ### if [[ ${OTM_HTTP_STATUS} -eq 200 && ! -z ${OTM_REMOTE_LENGTH} ]]; then echo "Downloading OTM" curl -m 30 --connect-timeout 15 "$BINARY_LOCATION" -o $start/otm_aarch64 sleep 2 OTM_LOCAL_LENGTH=$( ls -l $start/otm_aarch64 | awk '{print $5}' | sed -e 's/[\r\n]//g' ) if [ "${OTM_LOCAL_LENGTH}" == "${OTM_REMOTE_LENGTH}" ]; then echo "OTM downloaded, starting program then exiting this script" cd $start chmod +x $start/otm_aarch64 ## exec $start/otm_aarch64 & # Comment out the following line if using systemd to start the agent. To manually run the script, leave it uncommented. #$start/otm_aarch64 & ps cax | grep otm_aarch64 > /dev/null if [ $? -eq 0 ]; then echo "" echo "Congratulations, your agent is now monitoring your Internet connectivity." echo "Type 'ps cax | grep otm_aarch64' to see the process number" else echo "Something didn't work, your agent is not running." fi fi fi
Here is the starter script that I used according to the instructions Here
When I run the script it outputs the following:
I am by far an expert with linux and all I can do is follow instructions and try to google what the code segments mean. I am a hardware person and can build a data center but I don't have an idea how to use one.
-
Install infinite loopI am attempting to install the application with the script found on the arm setup page when I create a new software monitor. It hangs on the downloading OTM binary and never completes the download. Is it possible that the url in the script is incorrect or the file changed?