ContributionsMost RecentMost LikesSolutionsRe: pull csv report via rest api Wow, I just stumbled across this thread…. Here, I thought I was being a good citizen, trying to align my scripts with official LM API v3 endpoint calls. So while the first part of getting report (/report/reports/{id}/executions) works fine, the second part of getting report - you know getting the actual data (CSV|HTML|PDF format) using the/report/reports/{REPORT_ID}/tasks/{TASK_ID} does not. Getting HTTP Status Code 404. Wasted an hour on that. It is broken. So yeah, back to fetching data via GETreportUrl. Which works fine. Windows Services Monitoring with quite a bit more Automation applied So today we use LM's Microsoft Windows ServicesDataSource to monitor Windows Services. This DS uses Groovy Script and WMI calls under the hood to fetch the service metrics like state, start mode, status, etc... Everything works fine but one of the prerequisites is to go and manually populate the list of Windows services which then the DS parses out as a WILDVALUE variable in the script. You know, go to the device, click on Down Arrow (Manage Resource Options) --> Add Additional Monitoring --> and CHOOSE from the list of Windows Services. Rinse and Repeat and Save. Then the DS goes to work. Well, what if you have a list of over 100 Windows Services you need to add to let's say 20 Windows devices? That would take forever to populate that list manually... That's a problem number 1. Scratch that. This is not really a problem since one can run a PowerShell script (or Groovy Script) to perform this task using undocumented - but working very well - LM API calls. That problem is solved. Next - This list of over 100 Services needs to be *refreshed* every let's say 24 hours to remove nonexistent services and add new ones based on the Regex filter. That's a problem number 2. And again, one can do it programmatically running API calls but this is where I am trying to figure out how to do it. Run my script as a custom PropertySource? I am not really writing Resource Properties, I am updating instance list (Windows Services) within Additional Monitoring on bunch of Resources. Plus PropertySources are applied when ActiveDiscovery is run which is what, every 24 hours? Or should I write custom DataSource that would accomplish this refresh and specify 1 day collection period? Thanks. SolvedRe: Dynamic Dashboards Yeah, I would have never thought of that, but I do have that setting enabled, so the issue is elsewhere...But I am encouraged to hear it is working so I will keep troubleshooting. Re: Dynamic Dashboards Excellent. I am using dashboard v1.9. Stuart, did you have to modify the underlying JavaScript or tweak it in any way in regards to API calls? Maybe I am missing something else to get it working? Re: Dynamic Dashboards I would love to get this functionality in a dashboard. I downloaded theDynamic Dashboard - Windows in json format, loaded in my LM instance (we are using Windows collectors) and - while Resource Selector is working fine - the dashboard is not being updated with selected resources. Question - is the underlying JavaScript compatible with LM API v.3? I assume "Update Dashboard" REST method to save the new token values is silently failing. Is anybody using this dashboard with success? Re: Revisiting old topic - Custom Alerts for ConfigSources Mr. Ravimishra, that’s not what I was asking. Please read my initial post (as well as archived post). I want to have an alert triggered on ‘Any Change’ check type AND in addition said alert should state what lines were added or removed in the body of alert. I understand this is currently not possible using the ConfigSources. For whatever reason. So what I am doing instead - schedule a cron job, fetch the config files every 10 minutes or so from destination, crunch the numbers, comparing the previous and current version and output the desired output in the log which is then consumed by EventSource. One can use LM Logs as well. So everything works but the solution has many moving parts as opposed to using just ConfigSource and be done with it. Oh well. Revisiting old topic - Custom Alerts for ConfigSources At this time I have a need for a custom ConfigSource that would compare 2 textual files and report on Any Change. Nothing fancy and the new ConfigSource with defaultsettings indeed works just fine IF you only want to get an alert that a change was detected. However I would like to pass the actual lines that were modified in the alert. In searching for this topic I found anarchived post from 5 years ago. Custom Alerts for ConfigSources In that post Nick is asking if it is possible to do the following; Being able to put what lines were added or removed right in the alert. For simple configs you can then tell right away if you need to take action or not. That’s exactly what I am after. The archived post was posted 5 years ago…. does anybody know if there was any progress on this feature? I have a sinking feeling this is not possible today, or at least it’s not any easier than it was 5 years ago. Back to custom scripting? SolvedAny way to display LM Logs query results in Dashboard? Not sure if I am overlooking something…. is it possible to put LM Logs query table showing the results of said query into a Dashboard? The purpose of that would be to have the query updated with the latest results every x minutes. I've tried Text widget and HTTP widget andembedded the URL for log query but that's not working. Re: How to customize Clearing alert Thanks. Somehow, I am not surprised this is not an easy solution. Modify DS, choose Customized Alert message field and you are done. Nope. That won't work. Sigh. Can it be done? Sure. Programmatically (using LM API calls) modify Device Property which then you can use in your alert template or integration payload as a token. Done. Or, send all - or specific subset - of your alerts to External Alerting where you can use the Python or Powershell script and you can intercept all alerts, filter in your what you are after, customize the wording to your heart's content and send them on their way to Exchange recipients. Done. Extra extra work to streamline core feature. Re: How to customize Clearing alert Yeah, global setting for All Clearing alerts, which is why it is not applicable in my case. How can you modify clearing alert just for this DataSource and this DataPoint is my question?
Top ContributionsHow to get a list of local deprecated DataSources So I decided to do a little housecleaning and pulled up the LogicMonitor support article that listsLogicModule changes (including New, Updated, and Deprecated LogicModules) which are announced for...Revisiting old topic - Custom Alerts for ConfigSources At this time I have a need for a custom ConfigSource that would compare 2 textual files and report on Any Change. Nothing fancy and the new ConfigSource with defaultsettings indeed works just fine ...Windows Services Monitoring with quite a bit more Automation applied So today we use LM's Microsoft Windows ServicesDataSource to monitor Windows Services. This DS uses Groovy Script and WMI calls under the hood to fetch the service metrics like state, start mode, s...Re: How to customize Clearing alert Thanks. Somehow, I am not surprised this is not an easy solution. Modify DS, choose Customized Alert message field and you are done. Nope. That won't work. Sigh. Can it be done? Sure. Program...How to customize Clearing alert This is one of those back to basics questions but I am stumped! Just got a very simple request from my network team; Modify the host down alerts so when the host down condition is detected it co...Re: Data throughput - I need to workout or display/graph total data I recently had a similar request, in that the issue at hand was to look at (hundreds of) Cisco routers defined in our instance of LogicMonitor and perform the comparison of Throughput between the P...Linux dashboard question So I have a number of Linux devices, all configured and collecting data under Resources, all working fine. The twist is - some of them use SNMP v2c collection method and some use ssh credentials....Any way to display LM Logs query results in Dashboard? Not sure if I am overlooking something…. is it possible to put LM Logs query table showing the results of said query into a Dashboard? The purpose of that would be to have the query updated with the...Issue with Collector version 33.001 This is anOptional General Release, just recently put out by LogicMonitor. I mean they went from General Release 33.000 to 33.001. There appear to be 2 issues fixed in this release; Mitig...Please add Log feature to Custom Email Delivery Integration Please add logging for Custom Email Delivery Integration. This is really useful feature and it would be consistent with other Integrations (such as ServiceNow) which provide logging activity under...