inexio.thola.thola_check_ups_facts (1.0.2) — module

Checks if a UPS device has its main voltage applied

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

Authors: Thola team

Install collection

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


Add to requirements.yml

  collections:
    - name: inexio.thola
      version: 1.0.2

Description

Checks if a UPS device has its main voltage applied


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: thola check ups
  thola_check_ups_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 }}'
    battery_current_critical_max: '{{ battery_current_critical_max }}'
    battery_current_critical_min: '{{ battery_current_critical_min }}'
    battery_current_warning_max: '{{ battery_current_warning_max }}'
    battery_current_warning_min: '{{ battery_current_warning_min }}'
    battery_temp_critical_max: '{{ battery_temp_critical_max }}'
    battery_temp_critical_min: '{{ battery_temp_critical_min }}'
    battery_temp_warning_max: '{{ battery_temp_warning_max }}'
    battery_temp_warning_min: '{{ battery_temp_warning_min }}'
    current_load_critical_max: '{{ current_load_critical_max }}'
    current_load_critical_min: '{{ current_load_critical_min }}'
    current_load_warning_max: '{{ current_load_warning_max }}'
    current_load_warning_min: '{{ current_load_warning_min }}'
    rectifier_current_critical_max: '{{ rectifier_current_critical_max }}'
    rectifier_current_critical_min: '{{ rectifier_current_critical_min }}'
    rectifier_current_warning_max: '{{ rectifier_current_warning_max }}'
    rectifier_current_warning_min: '{{ rectifier_current_warning_min }}'
    system_voltage_critical_max: '{{ system_voltage_critical_max }}'
    system_voltage_critical_min: '{{ system_voltage_critical_min }}'
    system_voltage_warning_max: '{{ system_voltage_warning_max }}'
    system_voltage_warning_min: '{{ system_voltage_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

discover_retries:
    description:
    - Sets the number of discovery retries

discover_timeout:
    description:
    - Sets the discover timeout

battery_temp_warning_max:
    description:
    - Sets the warning max threshold for the battery temperature

battery_temp_warning_min:
    description:
    - Sets the warning min threshold for the battery temperature

current_load_warning_max:
    description:
    - Sets the warning max threshold for the current load

current_load_warning_min:
    description:
    - Sets the warning min threshold for the current load

battery_temp_critical_max:
    description:
    - Sets the critical max threshold for the battery temperature

battery_temp_critical_min:
    description:
    - Sets the critical min threshold for the battery temperature

current_load_critical_max:
    description:
    - Sets the critical max threshold for the current load

current_load_critical_min:
    description:
    - Sets the critical min threshold for the current load

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

system_voltage_warning_max:
    description:
    - Sets the warning max threshold for the system voltage

system_voltage_warning_min:
    description:
    - Sets the warning min threshold for the system voltage

battery_current_warning_max:
    description:
    - Sets the warning max threshold for the battery current

battery_current_warning_min:
    description:
    - Sets the warning min threshold for the battery current

system_voltage_critical_max:
    description:
    - Sets the critical max threshold for the system voltage

system_voltage_critical_min:
    description:
    - Sets the critical min threshold for the system voltage

battery_current_critical_max:
    description:
    - Sets the critical max threshold for the battery current

battery_current_critical_min:
    description:
    - Sets the critical min threshold for the battery current

rectifier_current_warning_max:
    description:
    - Sets the warning max threshold for the rectifier current

rectifier_current_warning_min:
    description:
    - Sets the warning min threshold for the rectifier current

rectifier_current_critical_max:
    description:
    - Sets the critical max threshold for the rectifier current

rectifier_current_critical_min:
    description:
    - Sets the critical min threshold for the rectifier current

Outputs

changed:
  description: whether the command has been executed on the device
  returned: always
  sample: true
  type: bool
thola_check_ups_facts:
  description: UPS facts
  returned: always
  type: dict