removed backend url check, only a few critical urls to verify connectivity

This commit is contained in:
Oliver Kieselbach
2026-03-17 16:08:40 +01:00
parent bd47760060
commit ca253b190f
2 changed files with 8 additions and 5 deletions
@@ -226,10 +226,13 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Collectors
// Build endpoint list: static MDM endpoints + dynamic backend URL
var endpoints = new List<(string Name, string Url)>(MdmEndpoints);
if (!string.IsNullOrEmpty(_apiBaseUrl))
{
endpoints.Add(("Autopilot Monitor API", _apiBaseUrl));
}
// Optionally add the Autopilot Monitor API endpoint, but we don't want to cause false alarms if it's down or unreachable,
// since it's not critical for enrollment success and may be available only after certain network changes (e.g. if it's behind a captive portal).
// For now, we can omit it from the critical checks.
// if (!string.IsNullOrEmpty(_apiBaseUrl))
// {
// endpoints.Add(("Autopilot Monitor API", _apiBaseUrl));
// }
// Run all checks in parallel
var tasks = endpoints.Select(ep => CheckEndpointAsync(ep.Name, ep.Url)).ToArray();
@@ -1 +1 @@
453
454