ScienceLogic Logo

ScienceLogic: Manually Running Dynamic Apps

ScienceLogic Dynamic Applications are policies that describe what data should be collected from managed systems, how it should be collected (SNMP, WMI, API, SQL, etc), how it should be presented, and what alerts should be created. Normally these are scheduled to run periodically, but sometimes you need to run them on an ad-hoc basis, particularly while testing new applications and systems.

This is done by going to the Device Properties page, then the Collections tab, and clicking the lightning bolt next to the dynamic app you want to run:

SL Collections SL Dynamic App Output

When you do this, it instructs the appropriate collector to go and run that Dynamic Application, and report back the results. This might take a minute or two to run, as the database needs to connect to the relevant collector, tell it to execute the application, and wait for the results. If you have Collector Groups, the collection will be run by whichever collector is currently assigned to that device.

This is normally OK for simple tests, but if you need to do it a few times, or for a few different dynamic applications, it can be a little slow and annoying. Wouldn’t be faster if we could just manually run the collection directly from the collector?

Turns out we can, by SSHing to the collector, and running:

This will immediately run and report the results. You need to know what the device ID is, and the ID of the specific dynamic application. These are circled in the earlier diagram.

Here’s some example output from one of my systems:

I haven’t seen any public documentation for this command, so I don’t know if there are any other options you can select when running it. Note that you have to run it from the collector that is currently assigned for that device. If you have multiple Data Collectors in a Collector Group, and try to run it from a different collector to that currently assigned, it will report back that:

Comments are closed.