Collector configuration management - API/Ansible
Hi,
We recently had to change the collector cache to a new baseline. Needed to be applied to every collectors.
To avoid slow and repetitive actions, we tried using APIs/Ansible.
But to my understanding the following APIs call don't support "Agent config" changes :
/setting/collector/groups/{id}
/setting/collector/collectors/{id}
Also tried using Ansible lm_collector module https://galaxy.ansible.com/ui/repo/published/logicmonitor/integration/content/module/lm_collector/
Virgil_Soulie
Posted 1 year ago·Last reply 1 year ago
2 comments
Edward McGowan
·1 year agoVirgil_Soulie could you try using the agentConfField array in the /setting/collector/collectors/{id} resource ?
Virgil_Soulie
OP1 year agoI've tried adding/updating the "AgentConfFields"
Using PATCH method with /setting/collector/collectors/ but the field stays "null"
Anything i'm missing ?