Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
LOG-1504: Configure-Linux.sh fails with Azure Linux VMs #70
Comments
|
Hey sorry I just saw this. What is the error you get on an Azure VM? Command not found? |
The below portion of the script will automatically fail on Azure Linux VMs. Azure does not allow ping to be used by default.
I had to remove this check from the script to properly get the script to complete and have Loggly configured on the VM.
checks if all the various endpoints used for configuring loggly are accessible
checkIfLogglyServersAccessible()
{
echo "INFO: Checking if $LOGS_01_HOST is reachable."
if [ $(ping -c 1 $LOGS_01_HOST | grep "1 packets transmitted, 1 received, 0% packet loss" | wc -l) == 1 ]; then
echo "INFO: $LOGS_01_HOST is reachable."
else
logMsgToConfigSysLog "ERROR" "ERROR: $LOGS_01_HOST is not reachable. Please check your network and firewall settings."
exit 1