We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
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
The text was updated successfully, but these errors were encountered:
Hey sorry I just saw this. What is the error you get on an Azure VM? Command not found?
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: