inexio.thola.thola_check_cpu_load_facts (1.0.6) — module

Checks the CPU load for a given device

| "added in version" 1.0.0 of inexio.thola"

Authors: Thola team

Install collection

Install with ansible-galaxy collection install inexio.thola:==1.0.6


Add to requirements.yml

  collections:
    - name: inexio.thola
      version: 1.0.6

Description

Checks the CPU load for a given device with SNMP


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: thola check cpu load
  thola_check_cpu_load_facts:
    api_host: '{{ api_host }}'
    host: '{{ host }}'
    community: '{{ community }}'
    version: '{{ version }}'
    port: '{{ port }}'
    discover_parallel_request: '{{ discover_parallel_request }}'
    discover_retries: '{{ discover_retries }}'
    discover_timeout: '{{ discover_timeout }}'
    critical_max: '{{ critical_max }}'
    critical_min: '{{ critical_min }}'
    warning_max: '{{ warning_max }}'
    warning_min:  '{{ warning_min }}'
  register: result

Inputs

    
host:
    description:
    - IP of the device you want to identify
    required: true

port:
    description:
    - The port you want Thola to connect to the device

version:
    description:
    - SNMP version that should be used to connect to the device

api_host:
    description:
    - Hostname of the running Thola API instance
    required: true

community:
    description:
    - SNMP community of the device

warning_max:
    description:
    - The maximum warning threshold

warning_min:
    description:
    - The minimum warning threshold

critical_max:
    description:
    - The maximum critical threshold

critical_min:
    description:
    - The minimum critical threshold

discover_retries:
    description:
    - Sets the number of discovery retries

discover_timeout:
    description:
    - Sets the discover timeout

discover_parallel_request:
    description:
    - Sets the number of possible parallel requests

Outputs

changed:
  description: whether the command has been executed on the device
  returned: always
  sample: true
  type: bool
thola_check_cpu_load_facts:
  description: CPU load facts
  returned: always
  type: dict