Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOG-1504: Configure-Linux.sh fails with Azure Linux VMs #70

Open
dylangrafmyre opened this issue Nov 17, 2014 · 1 comment
Open

LOG-1504: Configure-Linux.sh fails with Azure Linux VMs #70

dylangrafmyre opened this issue Nov 17, 2014 · 1 comment

Comments

@dylangrafmyre
Copy link

@dylangrafmyre dylangrafmyre commented Nov 17, 2014

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

@mostlyjason
Copy link
Contributor

@mostlyjason mostlyjason commented May 7, 2015

Hey sorry I just saw this. What is the error you get on an Azure VM? Command not found?

@nguyenfilip nguyenfilip changed the title Configure-Linux.sh fails with Azure Linux VMs LOG-1504: Configure-Linux.sh fails with Azure Linux VMs Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.