ContributionsMost RecentMost LikesSolutionsAppliesTo Function grabbing SDT value/property/status I am trying to write an AppliesTo function to filter out Resources that are in SDT from populating a dynamic folder. Is this possible?? Re: Logic.Monitor (PowerShell) module I didn’t even have time to write up an issue! Thanks Steve. I will test this out tomorrow! Re: Logic.Monitor (PowerShell) module Hi Steve, is there a way to update the static threshold at the resource/instance level using one of the already available modules? Cheers Re: Logic.Monitor (PowerShell) module @Steve Villardi Awesome - thanks so much for the super quick turn around. Really appreciate it. My only other gentle suggestion is to use Write-Output instead of Write-Host for Write-LMHost as commands can then have their output sent to $null resulting in no output to the host/console. Happy to create a pul request on the repo. Thanks again! _Loz Re: Logic.Monitor (PowerShell) module Fantastic Module, but adding#Requires -Version 7to 4.5.6 inBuild-LMDataModel.ps1 &Submit-LMDataModel.ps1has effectively killed the module for me in a corporate setting. Some backwards compatibility or reduction in function while still allowing other modules to work would be excellent. Re: glob expression excluding resources not working Scratch that, the filter seems to work in the filter ‘Resource Group (with Subgroups)’ but doesn’t work in the filter ‘Resource Group’, which is also the only filter I can use in an Alert. It seems that once you add an exclamation mark the filter goes completely empty. If I wrap a word in asterisks the drop down returns just words that match what’s wrapped. but if I type an exclamation mark at the start it doesn’t invert the filter and remove those entries, it just goes blank. I think there is a bug in the glob expression Back to the drawing board :( Re: glob expression excluding resources not working This seems to work. Weird that the double parenthesis’ isn’t mentioned on the page I linked. Appreciate the help! glob expression excluding resources not working The example: Include all servers under the group Production and child groups under production, except any servers under Production/Network/Servers: Production/!(Network/Servers) from:https://www.logicmonitor.com/support/terminology-syntax/glob-expressions does not work. If I do something like !(Vmware) in pretty much any field doesn’t seem to work, whatever I’m trying to filter (in the Alerts pane in this eg) anything with VMware still turns up, in my case I’m trying to filter theResource Groups heading. If I type (Vmware) in the Resource Group filter only Vmware alerts are returned . Any idea why this glob expression doesn’t seem to work??? SolvedDatasource to get Uptime of VMWare vCenter Appliance I cannot find a DataSource to build off to grab the uptime of our vCenter appliances. I am able to get ESXi hosts uptimes with: import com.vmware.vim25.mo.*; import com.santaba.agent.groovyapi.esx.ESX; def host = hostProps.get("system.hostname"); def user = hostProps.get("esx.user"); def pass = hostProps.get("esx.pass"); def addr = hostProps.get("esx.url") ?: "https://${host}/sdk"; def svc = new ESX(); svc.open(addr, user, pass, 10 * 1000); // Timeout in 10 seconds def rootFolder = svc.getServiceInstance().getRootFolder(); def hosts = new InventoryNavigator(rootFolder).searchManagedEntities("HostSystem"); hosts.each { esx -> def uptimeinSeconds = esx.summary.quickStats; println "UpTimeInSeconds=${uptimeinSeconds.uptime}"; } return 0; but cannot seem to adapt this for vCenter Appliances. Any help would be appreciated! Remove NaN from Dynamic Table Widget I have a dynamic table with top 10 resources displaying a certain datasource and of the 100 resources and their instances at any point in time there may only be 1-5 items that have any data, otherwise the datasource returns No Data, however the widget displays NaN against that same instance. Is there a way to remove NaN from the table using the Dynamic (Top10) list? I am currently using the following expression to turn NaN into 0: if(un(AllFilesOldestInMin),0,(AllFilesOldestInMin)) Cheers!
Top ContributionsAppliesTo Function grabbing SDT value/property/statusglob expression excluding resources not workingSolvedRe: Logic.Monitor (PowerShell) moduleRe: Logic.Monitor (PowerShell) moduleDatasource to get Uptime of VMWare vCenter ApplianceRemove NaN from Dynamic Table WidgetMSSQL Instances Auto Property OverrideRe: glob expression excluding resources not workingRe: glob expression excluding resources not workingRe: Logic.Monitor (PowerShell) module