Forum Discussion

Virgil_Soulie's avatar
27 days ago

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/

 

2 Replies

  • emcgowan's avatar
    emcgowan
    Icon for Product Manager rankProduct Manager

    Virgil_Soulie​ could you try using the agentConfField array in the /setting/collector/collectors/{id} resource ?

     

     "agentConfFields": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
      },

     

    • Virgil_Soulie's avatar
      Virgil_Soulie
      Icon for Neophyte rankNeophyte

      I've tried adding/updating the "AgentConfFields"

      {
        "agentConfFields": {
          "reporter.persistent.expire": "720"
        }
      }

      Using PATCH method with /setting/collector/collectors/ but the field stays "null"

      Anything i'm missing ?