ansible / ansible.builtin / v2.6.10 / module / logicmonitor_facts Collect facts about LogicMonitor objects | "added in version" 2.2 of ansible.builtin" Authors: Ethan Culler-Mayeno (@ethanculler), Jeff Wozniak (@woz5999) preview | supported by communityansible.builtin.logicmonitor_facts (v2.6.10) — module
pip
Install with pip install ansible==2.6.10
LogicMonitor is a hosted, full-stack, infrastructure monitoring platform.
This module collects facts about hosts and host groups within your LogicMonitor account.
# Always run those modules on localhost using delegate_to:localhost, or localaction - name: query a list of hosts logicmonitor_facts: target: host company: yourcompany user: Luigi password: ImaLuigi,number1! delegate_to: localhost
- name: query a host group logicmonitor_facts: target: hostgroup fullpath: /servers/production company: yourcompany user: mario password: itsame.Mario! delegate_to: localhost
user: description: - A LogicMonitor user name. The module will authenticate and perform actions on behalf of this user. required: true target: choices: - host - hostgroup description: - The LogicMonitor object you wish to manage. required: true company: description: - The LogicMonitor account company name. If you would log in to your account at "superheroes.logicmonitor.com" you would use "superheroes". required: true fullpath: description: - The fullpath of the hostgroup object you would like to manage. - Recommend running on a single ansible host. - Required for management of LogicMonitor host groups (target=hostgroup). hostname: default: hostname -f description: - The hostname of a host in your LogicMonitor account, or the desired hostname of a device to add into monitoring. - Required for managing hosts (target=host). password: description: - The password for the chosen LogicMonitor User. - If an md5 hash is used, the digest flag must be set to true. required: true collector: description: - The fully qualified domain name of a collector in your LogicMonitor account. - This is optional for querying a LogicMonitor host when a displayname is specified. - This is required for querying a LogicMonitor host when a displayname is not specified. displayname: default: hostname -f description: - The display name of a host in your LogicMonitor account or the desired display name of a device to add into monitoring.
ansible_facts: description: LogicMonitor properties set for the specified object example: "{\n \"name\": \"dc\",\n \"value\": \"1\"\n}, {\n \"name\": \"\ type\",\n \"value\": \"prod\"\n}, {\n \"name\": \"system.categories\",\n\ \ \"value\": \"\"\n}, {\n \"name\": \"snmp.community\",\n \"value\":\ \ \"********\"\n}\n" returned: success type: list