Chris Berry

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Chris Berry

  • Rank
    Community Member
  1. Hi, is it possible to use an api call to get hostId via hostname? As far as I can tell, if you use getHost to see the hostID you also get a bunch of other info and have to parse through it. If you use getHostProperties then you have to have the hostID already. So, it seems to be a bit of a conundrum. Thanks
  2. Hi, I used powershell to try and authenticate to our logicmonitor external portal. It returned the following: StatusCode : 200 StatusDescription : OK Content : {\'\'status\'\':403,\'\'errmsg\'\':\'\'Authentication failed. Check the url, username, and password.\'\'} RawContent : HTTP/1.1 200 OK Content-Length: 89 Content-Type: text/json;charset=UTF-8 Date: Fri, 30 Jan 2015 17:54:08 GMT Set-Cookie: JSESSIONID=3FA7E345679317FD1D1FBED8FA6726F2; Path=/santaba; Secure Server:... Forms : {} Headers : {[Content-Length, 89], [Content-Type, text/json;charset=UTF-8], [Date, Fri, 30 Jan 2015 17:54:08 GMT], [set-Cookie, JSESSIONID=3FA7E345679317FD1D1FBED8FA6726F2; Path=/santaba; Secure]...} Images : {} InputFields : {} Links : {} ParsedHtml : System.__ComObject RawContentLength : 89 When I use the exact login name and pass going to the portal directly it logs me in just fine. Any ideas? I used the following code: Invoke-WebRequest -Uri \'\'https://mycompany.logicmonitor.com/santaba/rpc/getEscalatingChains?c=mycompany&u=user&p=pass\'\' Thanks!