Retry http check before reporting an alert.
Put back the accidentally removed log file setting in main()