ContributionsMost RecentMost LikesSolutionsRe: Altas MongoDB Intergraion in LogicMonitor I just discovered that MongoDB Atlas requires defining an ACL (a list of IP addresses or IP CIDR) to allow connecting. I suspect LogicMonitor is not getting any data because MongoDB doesn't accept any connection. I opened a ticket with LogicMonitor to try to know if there is any list of IP addresses used by the Cloud collector connecting to MongoDB Atlas. This way we could configure those in MongoDB and hopefully we could get any data. Re: Altas MongoDB Intergraion in LogicMonitor I just tried the same, but got no result so far. All created folders are empty with no information. Re: How to use a bearer token for authentication using Python SDK Agree. This question is not solved. Re: How to use a bearer token for authentication using Python SDK I was trying something like this: . . . configuration = logicmonitor_sdk.Configuration() configuration.company = "CCCCCCC" configuration.api_key_prefix['Authorization'] = "Bearer" configuration.api_key['Authorization'] = "XXXXXXXXXXX" api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration)) . . . but when trying to do any call, I always get a denied access (401) error message. Re: How to use a bearer token for authentication using Python SDK I read that article but I’m afraid it doesn’t mention anything about using bearer tokens in the LogicMonitor SDK. How to use a bearer token for authentication using Python SDK I am trying to use a bearer token for authentication using Python SDK. On the documentation I found several examples using the LMv1 access_id and access_key values, like this: # Configure API key authorization: LMv1 configuration = logicmonitor_sdk.Configuration() configuration.company = 'YOUR_COMPANY' configuration.access_id = 'YOUR_ACCESS_ID' configuration.access_key = 'YOUR_ACCESS_KEY' # create an instance of the API class api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration)) but couldn’t find any example on using bearer token for authentication. After some search I found something about defining “api_token” and “api_token_prefix” but couldn’t get it to work. Anybody have any example I could follow to use this? "Virtual" device monitoring I am preparing a set of datasources to monitor several aspects of a cloud provided service. I can connect to that service using an URL and specific port, but cannot ping this service as it is blocked. When defining a new device for this, I assigned the “NoPing”, “NoHTTP”, “NoHTTPs” system categories but I still get the dead device icon. My datasources alerts are not generated because of this dead status. It looks like the device address is checked using ping anyway and is marked as dead. Is there anyway to avoid this behaviour? SolvedRe: Python SDK - modify a datasource I found the way to do that request. I found your example code on https://github.com/sweenig/lm/tree/main/LMAutomation/lmwrapper That was the piece of code I needed. Thanks for your help! Re: Python SDK - modify a datasource @Stuart Weenig Do you have any example code to do such a request using Python? Thanks a lot for your help. Python SDK - modify a datasource I am looking for a way to programmatically change a number of datasources. I searched through the API v3. documentation but couldn’t find any way. There are some calls to get information from datasources, but none to change them. I was expecting to find something like “patch_datasource_by_id”. Any ideas? Solved
Top ContributionsHow to use a bearer token for authentication using Python SDK"Virtual" device monitoringSolvedPython SDK - modify a datasourceSolvedRe: Python SDK - modify a datasourceRe: How to use a bearer token for authentication using Python SDKChanging column width on Alert List widgetRe: How to use a bearer token for authentication using Python SDKRe: How to use a bearer token for authentication using Python SDKAvailability alarm correlationRe: Unable to get eventsources list using REST API