Search the Community

Showing results for tags 'API'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • From LogicMonitor
    • Product Announcements
    • LM Staff Contributions
    • Community Events
  • LogicMonitor Product Discussion
    • Feature Requests
    • LM Exchange
    • Ask the Community

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 25 results

  1. Hello, We're monitoring a lot of Tegile device(s) via SNMP (making use of the OOB datasources, however, those fail quite often). This is happening for the majority of our clients & after our NOC opened a case with Tegile directly (they stated there's a bug when using SNMP on the MGMT IP). Having that in mind, I started leveraging the possibility of using Tegile API instead of SNMP. Searched through the Exchange but found none developed yet. My idea would be replace the SNMP with API ones.I've found their documentation about API calls but, actually requires some help to pu
  2. Hello, We're monitoring a lot of Tegile device(s) via SNMP (making use of the OOB datasources, however, those fail quite often). This is happening for the majority of our clients & after our NOC opened a case with Tegile directly (they stated there's a bug when using SNMP on the MGMT IP). Having that in mind, I started leveraging the possibility of using Tegile API instead of SNMP. Searched through the Exchange but found none developed yet. My idea would be replace the SNMP with API ones. I've found their documentation about API calls but, actually requires some help to
  3. Hello guys, I've raised a case with LM support already but I want to share this with the community (to make sure you guys experience this as well or no). We've created a simple Python script (about 4/5 months ago) that checks on a specific device (using its ID) & look for the presence of a certain DataSource (in this specific scenario 'snmp64_If-').
  4. Hi I'm fairly new to APIs and would like a little help please. I am trying to query the LM API for specific alerts with Python. I am able to retrieve a full list of alerts via Python which is a good starting point. I was using the following doc: https://www.logicmonitor.com/support/rest-api-developers-guide/v1/alerts/get-alerts What I would like some help with is the following: - Is there a way to retrieve alerts only for a specific folder? We have customers under specific folders. - How would I retrieve alerts with only a specific string in the resource name? E.g. all c
  5. I hope someone here can help, Using powershell and the rest API I would like to do a lookup of selected collectors find which has the least amount of devices on it then add the a new device . I have the script for adding the device and that works great just need the collector lookup, has anyone done something similar. Thank you in advanced for all help provided Paul
  6. Hello, Trying to get the below script to work, but hitting a snag. I've tried to repurpose the DataSource Upload Example script from this page to get the desired result but no dice. Param([Parameter(Mandatory=$true)][string]$name,[string]$GetInstance,[string]$GetType,[string]$Computername) <# Use TLS 1.2 #> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $accessId = '###' $accessKey = '###' $company = '###' $httpVerb = 'PUT' $widgetID = "350" $resourcePath = "/dashboard/widgets/$widgetID" $queryParams = '' $boundary = [System.Guid]::NewGuid(
  7. Hello All, I'm attempting to import datasources into our LogicMonitor instance, using the API and PowerShell. The following documentation only provides a CURL example, which isn't really sufficient for us. https://www.logicmonitor.com/support/rest-api-developers-guide/datasources/import-datasources-from-xml/ Usage: Import-LMDatasource -Credential $credentials -FilePath 'c:\repositories\LogicModules\DataSources\CustomDataSource.xml' I am assuming that you have an array containing your accessId, accessKey and company name, prior to calling the function. The parameter
  8. ANLX64 This monitors solr JVM stats via the SOLR API without the need to enable jmx. This datasource may not work on older solr versions as this particular API call was only recently introduced. Still, it should be very useful for monitoring the overall health of the JVM application.
  9. 3Z32Z4 This datasource monitors a large amount of SOLR performance data for each SOLR collection/core. It is done via batchscript and appears to return data extremely reliably and efficiently. There are no alert thresholds set up as performance expectations may vary depending on usage. I've also set up basic overview and per-instance graphs. There are 65 datapoints here though, so I'm sure more can be added.
  10. ZLPJP3 This datasource monitors the status of each solr collection without the need to enable JMX. It is done via batchscript and seems to be very efficient. The only alert set up is for cores that are recovering. Other alerts can be set up at your discretion. There are a few graphs included as well.
  11. Does anyone have any scripts that remove datasource instances using LM's API?
  12. Hello all, I am currently researching the possibility of running an integration between ServiceNow, an application my company utilizes, and LogicMonitor. I have a request from an end user to open a specific dashboard (this dashboard is different depending on certain conditions, but it is the same type of dashboard) when a link is clicked on the ServiceNow side. After looking at the REST API for LogicMonitor, specifically the API for getting information about a dashboard, I haven't found anything that points to the ability to grab the dashboard URL. I am able to craft a hyperlink su
  13. Hello, Is there a method to pull all the services [websites] from a group ? I have created a group "TEST" under services, and added 50 websites for monitoring, I need to pull a list of services from TEST group. thanks
  14. I have two sets of code. 1 pulls all 'Services' or Website groups. The other is supposed to just pull the group name and id. The first works, the second doesn't. I am using the base PowerShell script laid out in the documentation. If I remove the ?fields=name,id it works without issue. If I add it back it gives me this error "HTTP Status 401 - Unauthorizedtype Status reportmessage Unauthorizeddescription This request requires HTTP authentication.LogicMonitor Technical Operations". Any help would be awesome. <# request details #> $httpVerb = 'GET' $resourcePath = '/service/grou
  15. Is there a way to capture the datasource history? I tried combining through the forums and REST API instructions, but wasn't able to find anything. I would expect something like '/setting/datasources/XXXXXX/history'. I can access this via the UI - "settings --> datasources --> [Any datasource] --> click the "Show History" button.
  16. Hi All I am trying to create groups with a python script which read a CSV file. my txt file has following information {"name":1","parentId":462,"appliesTo": "Type==\\"Test Server\\\"\"} {"name":2","parentId":462,"appliesTo": "Type==\\"Test Server\\\"\"} {"name":3","parentId":462,"appliesTo": "Type==\\"Test Server\\\"\"} {"name":4","parentId":462,"appliesTo": "Type==\\"Test Server\\\"\"} when I run the script bellow I receive Invalid JSON body message Response Status: 200 Response Body: b'{"data":null,"errmsg":"Invalid json body","status":1007}'
  17. Hi I want to create device group named as "Fileserver" in /device/serversThis is the first time I am running the script, so could you please check if my script is ok. Alsoplease let me know how I run this script. I am sharing the script with you. #!/bin/env python import requests import json import hashlib import base64 import time import hmac #Account Info AccessId ='TBA' AccessKey ='TBA' Company = 'contoso' #Request Info httpVerb ='POST' resourcePath = '/device/servers' data = '{"name":"Fileserver"}' #Construct URL ur
  18. W9PN3Y I thought I had already posted this one, but regardless - here it is. This does not apply to any servers by default as it can be extremely noisy if you don't have it tuned. This makes an API call to solr to pull error and severe logs and then formats them so that LogicMonitor can understand them. Before applying this, it's not a bad idea to review those logs manually to make sure something isn't repeatedly triggering (as is common with SOLR). Still - it's helped us detect and diagnose a range of issues that would have otherwise been difficult to see.
  19. Hi all, I'm trying to find ideas, scripts, processes for a function our customer approached us with. In short, they want LM to place a call once per hour to the Interactive Voice Response application to ensure the IVR system answers the call, prompts are being displayed, and host database connection is established. My only is guess is to somehow create a Datasource that runs a script to interact with an API that somehow makes a phone call and then displays information as a result. I would like to know if this already part of LM or would need to be heavily developed in-house or
  20. 967XA7 This datasource queries the new Solr metrics API to gather JVM performance data without having to actually enable jmx on the solr node. This will only work on Solr nodes running version 6.6 or higher. Feedback always appreciated.
  21. This datasource monitors the solr logs via an http call to the web front end and parses the json response to output in a LogicMonitor-friendly format. This appears to work on all of the versions of Solr I have tested on (6.0+). *Note - I have disabled the applies-to on this datasource because it can be quite noisy if your logging hasn't been tuned on the Solr nodes. I did include some useful filters to strip out some of the more common noise - but I still recommend applying this with caution. W9PN3Y
  22. MZMPR6 Every 5 minutes, this datasource will query ElasticSearch for a list of the top 20 API callers as identified by the "userIdentity.sessionContext.sessionIssuer.userName" identity. This should return a list of users that are running under automation as opposed to user accounts. This will also return the number of calls that are being throttled by AWS as outlined here: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/query-api-troubleshooting.html Use this datasource to improve any code you have running in AWS that relies on API calls outside of cloudwatch. Suggestions o
  23. I'm currently working on a project to validate any configured LM alerts have an associated documentation - our documentation should have the datasource name as part of the title. Furthermore, I need to filter out devices that are not in my team's escalation path/rule. e.x. filter out "dev" environment devices. I'm pulling a list of datasources using the REST API '/setting/datasources' endpoint. I use a filter to only grab those that match my team's given escalation path/rule. I then pull the datasource properties, specifically the "appliesTo" value in the json response.
  24. Hello! We are trying to filter results based on the "updatedOn" property using the ">" operator. However, the request status will always return a 400 - Bad Request. We have used other operators that are successful, such as "!~" Example of a successful call (200 - OK): https://companyname.logicmonitor.com/santaba/rest/device/devices?filter=updatedOn!~1504905976 Example of a unsuccessful call (400 - Bad Request): https://companyname.logicmonitor.com/santaba/rest/device/devices?filter=updatedOn>1504905976 Am I doing anything wro
  25. I've been trying to get data for individual datapoints within a single instance datasource via the REST API, in this case there are ~twenty datapoints and I only want data for one of them. Using get_data: https://www.logicmonitor.com/support/rest-api-developers-guide/data/get-data/ I can pick out my datasource, however I can't find any information on filtering by datapoint. When I get data, the datapoints are all listed in an array, then the data is presented as an array of arrays for the last hour...I could get the position of the datapoint in the first array, then pick out the data using th