jeisenbath / ansible-collection-solarwinds-orion

An Ansible collection for managing nodes in Solarwinds Orion
11 stars 3 forks source link

Unable to find module to add CPU & Memory and asset inventory in the collection. #36

Open bhupendersb opened 1 week ago

bhupendersb commented 1 week ago

Unable to find module to add CPU & Memory and asset inventory in the collection. image

image

Andyjb8 commented 1 week ago

I am able to add CPU and Memory with the following:

- name: Add CPU and Memory Poller
  solarwinds.orion.orion_node_poller:
    hostname: "{{ hostname }}"
    username: "{{ username }}"
    password: "{{ password }}"
    name: "{{ inventory_hostname }}"
    state: present
    poller: "{{ item.name }}"
    enabled: "{{ item.enabled }}"
  loop:
    - name: N.Memory.SNMP.NetSnmpReal
      enabled: true
    - name: N.CPU.SNMP.NetSnmpReal
      enabled: true
  delegate_to: localhost
jeisenbath commented 3 days ago

It looks like Asset Inventory will need its own functions and module. SWIS API documentation for that is here and should be pretty straightforward.