Recent Discussions
Alert on Sum of 2 instance datapoints?
Apologies if this is super basic stuff. I sometimes want to do things I cant figure out, only to have it be something so basic that I should have learned 3 years ago when I was new. A user wants to be able to take X number of "SNMP Network Interfaces" instances, and possible multiple datapoints from those instances, and add them together into a total that can be displayed, graphed, and alerted on. MyUtilization = InterfaceA.InBps + InterfaceA.OutBps + InterfaceB.InBps + InterfaceB.OutBps They only want to graph MyUtilization, which is doable with a widget (using a virtual datapoint built from real datapoints). But they really want this summed value to show up in raw data somewhere where they can set a threshold and have it send alerts on the total, not the individual pieces. Short of making a custom datasource or something, is there a way to do it? Even in UIv4 I'm not seeing in the widgets a way to set a threshold on a virtual datapoint, unless I'm missing it. My brain doesnt process UIv4 well. And then I thought about experimenting with Services, and I can kinda show the values of a list of arbitrary datapoints and set thresholds on those, but I cant figure out how to sum them in any way. I was hoping the Services feature allows this. Maybe it does and I'm just UI-challenged. Is this possible, is it something basic that I have no excuse to not know, or is it not yet possible? Thanks!Lewis_Beard12 hours agoExpert8Views0likes1CommentIdentifying devices which do not have topology connections
I could not find any property or API endpoint to help with this. Has anybody else come across this challenge of identifying which network devices do not have any topology connections mapped? The predef.externalresourceid property will give me the ERIs of a device, but even that doesn't tell you whether the ERIs have been used to make any topology connections.Matt_Whitney12 hours agoExpert6Views0likes0CommentsConnectwise Integration Documentation Missing Step
There is a need to add a step to the Integration Docs (We're doing Connectwise, but I'm sure others need it as well)... https://www.logicmonitor.com/support/connectwise-integration It doesn't state that the escalation time in the alert rules that push to it should be set to "0" where possible to prevent over aggressive updates across the API from occurring. It is stated in the Alert Rule Documentation but isn't stated where the activity it ultimately effects is performed. Support recommended I use the Feedback option in the support sidebar... but that's blackhole with no feedback channel, so I'm posting it here instead.Cole_McDonald17 hours agoProfessor9Views0likes0CommentsMysql_Innodb_Percona- official LM module usage
Dear LM gurus, We would like to utilize the official LogicMonitor module Mysql_Innodb_Percona, but we're struggling to apply it and collect data using the module. However, other MySQL-related modules (such as MySQL Connection Status, MySQL Status, and MySQL Table Sizes) are working fine. Do you have any experience with using the official Mysql_Innodb_Percona module? How can we properly apply it and ensure it collects data? Your contribution will be much appreciated!Clark_Kent5 days agoNeophyte89Views0likes0CommentsDid Property Evaluation change in UIv4?
To bulk change things for a class of server (in this case, 2008 Servers), I used to be able to make a dynamic group in "Device By Type" to set a property on all devices. I use this to determine whether or not a device should create a ticket through rule>escalation>integration based on our contracts. I just added 2008 servers to our monitoring, I want the data from them, but we don't have them generate tickets as they're EOL... but can cause environmental issues that would take longer to find causes for if we don't have the data. They show up in the "DBT/Windows EOL" group, but the company.response="none" property set there isn't applying. It's inheriting the one from it primary containing folder/group instead. Everything else in that primary folder should apply a value of "standard" so I have that set as we bring on a client's environment and shift them from on-boarding to production support. My concern is that changes to classes of servers will now inherit incorrectly. Not just properties, but potentially differential SDTs, Alert Thresholds, etc.Cole_McDonald6 days agoProfessor112Views0likes3CommentsAdding additional text in mail from script
Hi, Small question, I have created a custom datasource that uses a embedded powershell script: # Variables $Folder = '##ps.filecount.folder##'; $Minutes = '##ps.filecount.minutes##'; $Recurse = '##ps.filecount.recursive##'; $Exclude = '##ps.filecount.exclude##'; $ComputerName = '##system.displayname##'; # Build parameters dynamically $GetChildItemParams = @{ Path = $Folder Attributes = '!Directory+!System' } if ($Recurse) { $GetChildItemParams['Recurse'] = $true } # Create session dynamically $Session = New-PSSession -ComputerName $ComputerName try { # Execute remotely $Result = Invoke-Command -Session $Session -ScriptBlock { param ( $Folder, $Minutes, $Recurse, $Exclude, $GetChildItemParams ) if (-not (Test-Path $Folder)) { # Exit with special error code if folder missing exit 3 } [array]$Files = Get-ChildItem @GetChildItemParams | Where-Object { $_.LastWriteTime -le (Get-Date).AddMinutes(-$Minutes) -and $_.FullName -notmatch "$Exclude" -and $_.FullName -notmatch "nagios-monitoring" -and $_.FullName -notmatch "netscaler-monitoring" } # Get the newest file among all (not just those older than $Minutes) $NewestFile = $Files | Sort-Object LastWriteTime -Descending | Select-Object -First 1 # Safely extract properties $NewestFilePath = if ($NewestFile) { $NewestFile.FullName } else { "" } $NewestFileDate = if ($NewestFile) { $NewestFile.LastWriteTime } else { "" } # Return both count and newest file path return @{ Count = $Files.Count NewestFile = $NewestFilePath NewestDate = $NewestFileDate } } -ArgumentList $Folder, $Minutes, $Recurse, $Exclude, $GetChildItemParams # Output only the final datapoint in the correct format Write-Output "NumberofFiles=$($Result.Count)" Write-Output "NewestFile=$($Result.NewestFile -replace '\\', '\\')" Write-Output "NewestFileDate=$($Result.NewestDate)" Write-Output "INFO: Found $($Result.Count) file(s) older than $Minutes minutes in $Folder on $ComputerName" } catch { # Optional: Output something recognizable for LogicMonitor if there's an error Write-Output "NumberofFiles=-1" Write-Output "NewestFile=ERROR" Write-Output "NewestFileDate=ERROR" } finally { # Cleanup the session (always!) if ($Session) { Remove-PSSession -Session $Session } } The Graph is fine (NumberofFiles), but I also want to include the "NewestFile" and "NewestFileDate" output in the mail alert. is this possible?103Views0likes8Comments