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
Ashiwad
Posted 6 years ago·Last reply 6 years ago
1 comment
LM User
·6 years agoTake a look at this article: https://www.logicmonitor.com/support/terminology-syntax/scripting-support/embedded-powershell-scripting
Essentially, the script in your DS would have a hostname variable that would be populated depending on which device is being polled at the moment. You can actually pull any property that LM has for the device into the script as a variable.