How can I run a script as a DataSource instead of an EventSource
Hi,
I don’t know if this is going to make any sense, as I’m working on something created by someone else, but here goes…
We have some servers that run some custom jobs. We have scripts on these servers and have EventSources setup in LM to run these scripts and collect the data every X minutes. When the scripts return data that needs to alert us, it does. But, if it runs again 5 minutes later, and gets another results that says to alert us, it creates a new alert, instead of just chalking it up to the existing alert that’s still there.
Do we need to set this up as a Datasource instead of an Eventsource maybe? I don’t know exactly what the scripts do yet, so I’m just looking for general info on how we can make this work.
Is it better to have LM run a script and get the result vs having the server run the script, put the results in a file, and then LM just goes and reads the file?
Anyway, that’s probably pretty vague, but if it makes sense, let me know.
Thanks.