Forum Discussion

mgianesini's avatar
21 days ago

New-LMWebsite for internal check not working properly

Hello,

I'm trying to use the module to create about 300 website checks: lm-powershell-module/Documentation/New-LMWebsite.md at main · logicmonitor/lm-powershell-module · GitHub

Unfortunately that fails with an issue where checkpoints are not added and the page check doesnt work.

The line creating the website is:
New-LMWebSite -WebCheck -name $web.name -WebsiteDomain $web.name -HttpType "https" -GroupId "4" -OverallAlertLevel "warn" -IndividualAlertLevel "warn" -IsInternal $true -TestLocationCollectorIds @(1, 15, 18)

With this result:
id  name                   description type     isInternal status
--  ----                   ----------- ----     ---------- ------
281 mtc92.mom.domain.com             webcheck True       dead-collector

To make it work I need to get to the site check and manually select collector group and collector id.

Any suggestions to sort this out?

No RepliesBe the first to reply