-
Notifications
You must be signed in to change notification settings - Fork 19
monitor_info
Note
This module is part of the lucasheld.uptime_kuma collection (version 1.0.0).
To install it, use: ansible-galaxy collection install lucasheld.uptime\_kuma
.
You need further requirements to be able to use this module,
see :ref:`Requirements <ansible_collections.lucasheld.uptime_kuma.monitor_info_module_requirements>` for details.
To use it in a playbook, specify: lucasheld.uptime_kuma.monitor_info
.
- Retrieves facts about monitors.
The below requirements are needed on the host that executes this module.
- uptime-kuma-api
Parameter |
Comments |
---|---|
Headers that are passed to the socketio connection. |
|
The Uptime Kuma password. Only required if no api_token specified and authentication is enabled. |
|
true to verify SSL certificates, or false to skip SSL certificate verification, allowing connections to servers with self signed certificates. Choices:
|
|
How many seconds the client should wait for the connection, an expected event or a server response. Default: |
|
The Uptime Kuma login token. Only required if no api_username and api_password specified and authentication is enabled. |
|
The Uptime Kuma URL. Default: |
|
The Uptime Kuma username. Only required if no api_token specified and authentication is enabled. |
|
How many seconds the client should wait for the next event of the same type. There is no way to determine when the last message of a certain type has arrived. Therefore, a timeout is required. If no further message has arrived within this time, it is assumed that it was the last message. Default: |
|
The id of the monitor to inspect. Only required if no name specified. |
|
The name of the monitor to inspect. Only required if no id specified. |
- name: get all monitors
lucasheld.uptime_kuma.monitor_info:
api_url: http://127.0.0.1:3001
api_username: admin
api_password: secret123
register: result
Key |
Description |
---|---|
The monitors as list Returned: always |
|
The accepted status codes of the monitor. Returned: always Sample: |
|
True if upside down mode is active. Returned: always Sample: |
|
The auth domain of the monitor. Returned: always Sample: |
|
The auth method of the monitor. Returned: always Sample: |
|
The auth workstation of the monitor. Returned: always Sample: |
|
The basic auth pass of the monitor. Returned: always Sample: |
|
The basic auth user of the monitor. Returned: always Sample: |
|
The http body of the monitor. Returned: always Sample: |
|
The sqlserver connection string of the monitor. Returned: always Sample: |
|
The database query of the monitor. Returned: always Sample: |
|
The dns last result of the monitor. Returned: always Sample: |
|
The dns resolve server of the monitor. Returned: always Sample: |
|
The dns resolve type of the monitor. Returned: always Sample: |
|
The docker_container of the monitor. Returned: always Sample: |
|
The docker_host of the monitor. Returned: always Sample: |
|
True if certificate expiry notification is enabled. Returned: always Sample: |
|
The game of the monitor. Returned: always Sample: |
|
The grpc body of the monitor. Returned: always Sample: |
|
True if grpc enable tls is enabled. Returned: always Sample: |
|
The grpc metadata of the monitor. Returned: always Sample: |
|
The grpc method of the monitor. Returned: always Sample: |
|
The grpc protobuf of the monitor. Returned: always Sample: |
|
The grpc service name of the monitor. Returned: always Sample: |
|
The grpc url of the monitor. Returned: always Sample: |
|
The http headers of the monitor. Returned: always Sample: |
|
The hostname of the monitor. Returned: always Sample: |
|
The id of the monitor. Returned: always Sample: |
|
True if ignore tls error is enabled. Returned: always Sample: |
|
The includeSensitiveData of the monitor. Returned: always Sample: |
|
The heartbeat interval of the monitor. Returned: always Sample: |
|
The keyword of the monitor. Returned: always Sample: |
|
True if the monitor is under maintenance. Returned: always Sample: |
|
The max redirects of the monitor. Returned: always Sample: |
|
The retries of the monitor. Returned: always Sample: |
|
The http method of the monitor. Returned: always Sample: |
|
The mqtt password of the monitor. Returned: always Sample: |
|
The mqtt success message of the monitor. Returned: always Sample: |
|
The mqtt topic of the monitor. Returned: always Sample: |
|
The mqtt username of the monitor. Returned: always Sample: |
|
The name of the monitor. Returned: always Sample: |
|
The notification ids of the monitor. Returned: always Sample: |
|
The packetSize of the monitor. Returned: always Sample: |
|
The port of the monitor. Returned: always Sample: |
|
The proxy id of the monitor. Returned: always Sample: |
|
The push token of the monitor. Returned: always Sample: |
|
The radiusCalledStationId of the monitor. Returned: always Sample: |
|
The radiusCallingStationId of the monitor. Returned: always Sample: |
|
The radiusPassword of the monitor. Returned: always Sample: |
|
The radiusSecret of the monitor. Returned: always Sample: |
|
The radiusUsername of the monitor. Returned: always Sample: |
|
The resendInterval of the monitor. Returned: always Sample: |
|
The heartbeat retry interval of the monitor. Returned: always Sample: |
|
The tags of the monitor. Returned: always Sample: |
|
The type of the monitor. Returned: always Sample: |
|
True if upside down mode is enabled. Returned: always Sample: |
|
The url of the monitor. Returned: always Sample: |
|
The weight of the monitor. Returned: always Sample: |
- Lucas Held (@lucasheld)