mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-25 13:10:13 +00:00
removed backend url check, only a few critical urls to verify connectivity
This commit is contained in:
+7
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user