Forum Discussion
4 years ago
I am also looking for this feature.
My use case is different but basically it boils down to "How can I maintain a variable between executions of a script"
I will be doing the 'file in tmp' suggestion, but as stated this is flawed as it might disappear, get cleaned out, etc. My use case is not sensitive to failure so this will work, but a hostProps.set would be ideal.
For a more sensitive flow that required maintaining of state, I did a API request to the devices endpoint in Logic monitor to 'set' properties with a limited api user account created for this purpose. Basically got a 'two way flow' working: LM -> Collector and Collector -> LM (though the API). It was so dirty I showered after.
Related Content
- 10 months ago