Adding Groovy Libraries

Along with other installation files, collector installer also carries multiple AWS SDK JARs which are used in the core and custom modules (DataSources). To ensure that the size of collector installer remains light, starting with Collector EA version 34.100, we ship only the following AWS SDK JARs which are used by collector and core modules. … Continued

Script Troubleshooting

Scripting Best Practices LogicMonitor’s scripting features provide for powerful extensibility of your monitoring, but as they say: with great power comes great responsibility. To ensure your scripts run trouble-free, keep the following best practices in mind: Because LogicMonitor scripts are run by your Collector, they’re limited by the overall horsepower in that system. As such, … Continued

Groovy/Expect Text-Based Interaction

Overview One of most powerful features in the LogicMonitor Collector’s kitchen sink of Groovy tricks is our Expect-based new helper classes. Many network devices require that you connect via SSH/Telnet and run commands on their CLI. With our Expect methods, you can write Groovy scripts that will interact with processes and devices remotely as though … Continued

External Scripting

Overview In addition to embedded scripting with Groovy and PowerShell, LogicMonitor also provides support for external scripts using whatever language you prefer. Although we typically recommend Groovy for most tasks that require scripting, you may have expertise in a particular language that you’d prefer to use. Alternately, you can use external scripting to execute any … Continued

PowerShell Tips & Tricks

Embedded PowerShell Scripting is a great way to get data from Windows systems that provide management data via cmdlets. The following a few tips & tricks to get the most out of PowerShell. Using Custom Device Properties in PowerShell In addition to ingesting standard device properties in PowerShell scripts along the lines of ##system.hostname##, you … Continued

Embedded PowerShell Scripting

On Windows Collectors, LogicMonitor supports embedded scripting using PowerShell. Although we typically recommend Groovy for most tasks that required scripting, PowerShell is advantageous when you need to monitor Windows-specific metrics that might be accessible only via PowerShell Cmdlets. With some configuration PowerShell can also be used for “Remoting” which allow one to invoke commands on … Continued

Groovy Tips & Tricks

LogicMonitor’s Embedded Groovy Scripting engine provides a number of helper classes specifically selected to help get instrumentation data out of systems and devices. See the following tips & tricks: Calling a Simple HTTP API Many devices have their own HTTP APIs that you might need to access to get device performance data. For a simple … Continued

Embedded Groovy Scripting

Overview LogicMonitor supports embedded scripting throughout our product using the Groovy programming language. Groovy can be used in DataSources for Scripted Active Discovery, Scripted Data Collection, and Complex Datapoint Post-Processing; in Scripted EventSources; ConfigSources; and Netscan Policies. We favor Groovy primarily because—as an extension of Java—it is run entirely within the LogicMonitor Collector, so we … Continued

Groovy HTTP Access

The LogicMonitor Collector has a number of helper methods to assist with using HTTP within Groovy. You might need to use Groovy / HTTP methods to: fetch data from a webpage and process the results perform multi-step web transactions  e.g. retrieve an authorization cookie in one transaction, and use that cookie to authenticate subsequent transactions Note … Continued