Incident 2023-06-20 - Duplicate Azure devices
Yesterday’s Azure device duplication issue (seehttps://status.logicmonitor.com/) is still active (details below). This has had far-reaching implications for a few of our (Panoramic Data Limited)’s customers, including an alert storm. At the current time, LogicMonitor have not posted a solution for de-duplicating the Azure VMs or silencing the alerts. We have developed a script to do so, and we are happy to help you to (carefully!) bulk delete your duplicate Azure devices. If you would like to hold a call to remedy this on your LM portal, please contact me direct via Linked In (https://www.linkedin.com/in/davidbond/). However… IF you have a tame .NET dev, feed them some caffeine and instruct them as follows… At a PowerShell prompt: dotnet new install LogicMonitor.Cli dotnet new logicmonitor --name "My.AzureDeduplicator" code . Edit and update appsettings.json Provide account, tokenId and tokenKey Set “Setting1” to the string version of the ResourceGroup ID that you want to deduplicate from Modify Application.cs as follows: protected override async Task ExecuteAsync(CancellationToken cancellationToken) { try { // Use _logger for logging _logger.LogInformation("Application start. DeviceGroupId is set to {setting1}", _config.Setting1); using var logicMonitorClient = new LogicMonitorClient(_config.LogicMonitorClientOptions); var allDevices = await logicMonitorClient .GetAllAsync<Device>( cancellationToken ) .ConfigureAwait(false); var deviceGroupIdString = _config.Setting1; var devices = allDevices .Where(d => d.DeviceGroupIdsString.Split(',').Any(dgs => dgs == deviceGroupIdString)) .ToList(); _logger.LogInformation("Found {deviceCount} devices", devices.Count); // Find a list of those with a similar name, but ending in #1 var devicesToDedupe = devices .Where(d => d.DisplayName.EndsWith("#1") && devices.Any(d2 => d2.DisplayName == d.DisplayName.Replace("#1", ""))) .ToList(); foreach(var device in devicesToDedupe) { if(cancellationToken.IsCancellationRequested) { return; } _logger.LogInformation("Deduplicate {deviceName}?", device.DisplayName); // Read a keypress from the user and check that it's a Y if(Console.ReadKey().KeyChar == 'Y') { // Delete the duplicate _logger.LogInformation("Deleting {deviceName}", device.DisplayName); await logicMonitorClient .DeleteAsync(device, cancellationToken) .ConfigureAwait(false); } else { _logger.LogInformation("Skipping {deviceName}", device.DisplayName); } } } finally { _lifetime.StopApplication(); } } READ AND UNDERSTAND THE CODE - BE SURE THAT THIS IS WHAT YOU WANT TO DO dotnet run This will prompt you for each device. Usual caveats: THE OWNER MAKES NO WARRANTIES, EXPRESS OR IMPLIED, WITH RESPECT TO THE CONFIDENTIAL INFORMATION AND HEREBY EXPRESSLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. LogicMonitor’s Status page text: LogicMonitor is currently investigating impacts to our LM Cloud Component(s) for MS AzureSubscribe Update-We have rolled back the component responsible for adding duplicate Azure devices. We are continuing to investigate the best approach for removing the incorrectly added duplicate devices. The next update will be around 10am PT on Wednesday June 21st. Jun20,2023-19:37CDT Identified-LogicMonitor has identified an issue with our LM Cloud application that may be creating duplicate Azure devices for some customer's accounts. We are currently working towards remediating the issue with our Engineering backend team. We will provide further updates in approximately 2 hours, or if more information is uncovered. Jun20,2023-17:32CDT Investigating-LogicMonitor is currently investigating technical abnormalities, which may be impacting customer accounts. We will update once we have further information on the full scope of impact. Jun20,2023-17:27CDT88Views16likes3Comments☁️ Monitor Azure Resource Events with LogicMonitor Logs
I have a strong preference for Microsoft Azure due to its exceptional capabilities! I recently wrote a blog post showcasing how to bring your resource events to the LogicMonitor platform. This way, you can set up alerts for critical business operations, such as when a new user is added to your Active Directory (Entra), or when a file is deleted from your blob storage. I hope you find it as helpful as I did! Monitor Azure Resource Events with LogicMonitor Logs Do you use LogicMonitor or any other monitoring platform to address unique use cases? Share your stories with us!77Views13likes0CommentsEnhanced Azure Subscription Monitoring API
We appreciate the robust monitoring capabilities provided by LogicMonitor. However, we've encountered challenges when managing Azure subscriptions. Specifically, enabling/disabling monitoring for new subscriptions requires manual intervention, leading to potential oversights. Our attempted solution involved using the REST API, but limitations with versioning (v3 vs. v4) hindered our progress. We noticed that adding subscriptions to the custom property `azure.subscriptionIDs` doesn't directly impact monitoring. We kindly request the following enhancements: 1. A dedicated API endpoint to enable/disable subscription monitoring. 2. Clarification on v4 API availability or a preview version. Such improvements would significantly streamline our workflow and enhance efficiency.61Views7likes0CommentsLogicMonitor for Azure and AVS
Hi Team, I am new to LogicMonitor and havebelow basic queries on LogicMonitor and Collectors: If we want to monitor Azure as well as Azure VMWare Solution (AVS) using LM, do we need one collectorfor Azure and another for AVS? If we add the subscription as per this link (Adding Microsoft Azure Cloud Monitoring | LogicMonitor), will it allow us to monitor Azure Networking, activity logs etc.? Do we need to deploy the resource group with Event Hub and AzureFunction (Sending Azure Logs | LogicMonitor) to send the logs to LM? Installing the collector in the Azure region and adding the Subscription not suffice?Solved247Views5likes1CommentAzure Monitor metric namespaces
We have a requirement to access metrics exposed in Azure Monitor under a different metric namespace (azure.vm.linux.guestmetrics). is it possible to extend the available namespace in anyway, or would I have to use a script collector to hit the azure monitor API?Solved98Views4likes1CommentAzure monitoring for reserve instances
LM does a great job of collecting billable information for hourly resources via the API; however misses reservations. Would be great to have billing dashboards that fully defineall billable items in Azure and allow for historical and forecasting capabilities.40Views4likes3CommentsAzure Cloud Monitoring Question (M365/Sharepoint)
As an MSP employee trying to monitor Azure resources for a client, I need guidance on the setup process. Do I need to purchase specific Azure subscriptions to integrate a cloud account into LogicMonitor, and can I monitor multiple Azure tenants using a single enterprise application?72Views1like3Comments