ContributionsMost RecentMost LikesSolutionsNeed assistance to change Alert Distribution list Hello Team, Could you please me find out how to change the 'default ' values to some specific Email or link it to the Alert Rules in my Settings. I need to do this only for this specific alert on my Server.. Rest Alert will be goin to different mail ids. Regards, Ashi CPU alert only if its high for a certain time Hi All...... Was trying to figure out if theres any way where I can get the alert scheduled for high CPU usage but only if it is high for a said period of time.. Is that possible to set a different time for different servers, because we do not bother alerts from our servers unless it's burning for an hour or so. Thank you Re: Can you suggest please : One single Datasource for Multiple server Hey Stuart After spending some time on it i managed to get some sample scripts and understood exactly what it does and how. ## Active Script ## $hostname = '##SYSTEM.HOSTNAME##' $namespace = "root\cimv2" $query = "SELECT NAME FROM Win32_LogicalDisk" $output = Get-WmiObject -Namespace $namespace -ComputerName $hostname -Query $query foreach ($instance in $output) { $name = $instance.Name Write-Host "$name##$name" } exit ## Collector Script ## $hostname = '##SYSTEM.HOSTNAME##' $wildvalue = '##WILDVALUE##' $namespace = "root\cimv2" $query = "SELECT * FROM Win32_LogicalDisk WHERE NAME='$wildvalue'" $output = Get-WmiObject -Namespace $namespace -ComputerName $hostname -Query $query Write-Host "Size=$($output.Size)" Write-Host "FreeSpace=$($output.FreeSpace)" exit Now i remain with few other questions 1. This is WMI so gets me the partition names, how can i get the paths to iterate in Active script So I manually Added monitored instances under my resource, but didn't work for me. 2. Tried Setting up UNC.PATH, didn't work I'll spend time trying few things here n there until I hear back from you. Please advice Thank you Re: Can you suggest please : One single Datasource for Multiple server On 5/8/2020 at 11:29 PM, Stuart Weenig said: If the active discovery script had discovered 7 folders on server1, 3 folders on server2, and 5 folders on server3, then the collect script would run 15 times, Hey Stuart ..... Thanks again for the assistance so far Considering i am very new to Logicmonitor and Powershell as well, could you please help me with a sample Activ Script for passing multiple paths ? I couldn't decode much from the support documents. Questions ; 1. After the activ scripting in DS, do I still need to add instance on my resource? 2. Where do I specify ##WILDVALUES##, in the instances right?..... What if they are multiple values, how does the name convention work for it ? Also i read it that wildvalues cannot have '\' in it. So how can i specify paths to different folders. Sorry for those Newbie noob questions Thank you Re: Can you suggest please : One single Datasource for Multiple server Thanks Stuart for showing interest in helping out Yes definitely the requirements is of varied data under one datasource. Can be like : Server 1 check for Size of folders at a directory Server 2 check for Oldest file lying in the given folder Server 3 check for certain no of files greater than certain size Can this requirement be satisfied by multi instance Datasource? And if yes then it maintains the raw separately?..... Meaning i cannot see other raw data from this server. Re: Can you suggest please : One single Datasource for Multiple server Thank you for your assistance. But if my logic within would be changing for different servers For eg: Invoke command - computername Server1 - scriptblock { Logic to Size of folder = x } Invoke command - computername Server2 - scriptblock { Logic to Number of empty folder = y } Invoke command - computername Server3 - scriptblock { Logic to Name of oldest folder = z } So still do we see a way out of this? Or then we have to create 2 separate Data sources? Re: Can you suggest please : One single Datasource for Multiple server My powershell script in the datasource box is like below Invoke command - computername Server1 - scriptblock { Logic to Size of folder = x } Invoke command - computername Server2 - scriptblock { Logic to Size of folder = y } Invoke command - computername Server3 - scriptblock { Logic to Size of folder = z } So each script output is like eg: X= 20 Data points collecting key value pairs Datapoint1 =x..... Datapoint2=y and Datapoint3=z My Requirement : Server1 should display only Datapoint1 Raw data and not other 2 data. Anything you could help or point me to? Thank you Re: Can you suggest please : One single Datasource for Multiple server Thank you Yes this a powershell based Datasource. For example : My "AppliesTo" picks 3 servers from the pool. So now this Datasource is common to the three servers. 3 Data points are built into the Datasource. Problem: While viewing each Server individually from "Resources"..... I can see Raw Data for all three servers. Question : Can I make this Data point specific. I mean if I navigate to Server1, I should only see Raw Data for Server 1. Thank you, Please questions if scenario isn't clear. Can you suggest please : One single Datasource for Multiple server When i use One single Datasource for Multiple servers it then displays all the Raw Data on any of the server from Datasource. Can I force it to display only specific Data point outputs on the RawDat tab. Thank you Please ask me if you need more elaboration. Datasource - read data for multiple servers via Powershell Hello All, Good Morning I am trying to create a Datasource which would target a set of servers (say 40). Challenge here is that I need to do a different tests for each one.....ie.Powershell script should be taking input for the server name and accordingly querying that server to read the values. Any help on this will be highly appreciated. New to logicmonitor as well powershell, help me with a direction Thank you
Top ContributionsNeed assistance to change Alert Distribution listCPU alert only if its high for a certain timeRe: Can you suggest please : One single Datasource for Multiple serverRe: Can you suggest please : One single Datasource for Multiple serverRe: Can you suggest please : One single Datasource for Multiple serverRe: Can you suggest please : One single Datasource for Multiple serverRe: Can you suggest please : One single Datasource for Multiple serverRe: Can you suggest please : One single Datasource for Multiple serverCan you suggest please : One single Datasource for Multiple serverDatasource - read data for multiple servers via Powershell