-
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 0.14.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install git+https://github.com/lucasheld/ansible-uptime-kuma.git
.
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. |
|
The Uptime Kuma login token. Only required if no api_username and api_password specified and authentication is enabled. |
|
The Uptime Kuma URL. Default: "http://127.0.0.1:3001" |
|
The Uptime Kuma username. Only required if no api_token specified and authentication is enabled. |
|
How many seconds the client should wait for the connection (default: 1). Default: 1 |
|
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: ["200-299"] |
|
True if upside down mode is active. Returned: always Sample: true |
|
The auth domain of the monitor. Returned: always Sample: "None" |
|
The auth method of the monitor. Returned: always Sample: "" |
|
The auth workstation of the monitor. Returned: always Sample: "None" |
|
The basic auth pass of the monitor. Returned: always Sample: "None" |
|
The basic auth user of the monitor. Returned: always Sample: "None" |
|
The http body of the monitor. Returned: always Sample: "None" |
|
The sqlserver connection string of the monitor. Returned: always Sample: "Server=\u003chostname\u003e,\u003cport\u003e;Database=\u003cyour database\u003e;User Id=\u003cyour user id\u003e;Password=\u003cyour password\u003e;Encrypt=\u003ctrue/false\u003e;TrustServerCertificate=\u003cYes/No\u003e;Connection Timeout=\u003cint\u003e" |
|
The database query of the monitor. Returned: always Sample: "None" |
|
The dns last result of the monitor. Returned: always Sample: "None" |
|
The dns resolve server of the monitor. Returned: always Sample: "1.1.1.1" |
|
The dns resolve type of the monitor. Returned: always Sample: "A" |
|
The docker_container of the monitor. Returned: always Sample: "" |
|
The docker_host of the monitor. Returned: always Sample: "None" |
|
True if certificate expiry notification is enabled. Returned: always Sample: false |
|
The game of the monitor. Returned: always Sample: "7d2d" |
|
The grpc body of the monitor. Returned: always Sample: "None" |
|
True if grpc enable tls is enabled. Returned: always Sample: false |
|
The grpc metadata of the monitor. Returned: always Sample: "None" |
|
The grpc method of the monitor. Returned: always Sample: "None" |
|
The grpc protobuf of the monitor. Returned: always Sample: "None" |
|
The grpc service name of the monitor. Returned: always Sample: "None" |
|
The grpc url of the monitor. Returned: always Sample: "None" |
|
The http headers of the monitor. Returned: always Sample: "None" |
|
The hostname of the monitor. Returned: always Sample: "None" |
|
The id of the monitor. Returned: always Sample: 1 |
|
True if ignore tls error is enabled. Returned: always Sample: false |
|
The includeSensitiveData of the monitor. Returned: always Sample: true |
|
The heartbeat interval of the monitor. Returned: always Sample: 60 |
|
The keyword of the monitor. Returned: always Sample: "None" |
|
True if the monitor is under maintenance. Returned: always Sample: false |
|
The max redirects of the monitor. Returned: always Sample: 10 |
|
The retries of the monitor. Returned: always Sample: 0 |
|
The http method of the monitor. Returned: always Sample: "GET" |
|
The mqtt password of the monitor. Returned: always Sample: "None" |
|
The mqtt success message of the monitor. Returned: always Sample: "None" |
|
The mqtt topic of the monitor. Returned: always Sample: "None" |
|
The mqtt username of the monitor. Returned: always Sample: "None" |
|
The name of the monitor. Returned: always Sample: "test" |
|
The notification ids of the monitor. Returned: always Sample: [1, 3] |
|
The packetSize of the monitor. Returned: always Sample: 56 |
|
The port of the monitor. Returned: always Sample: 53 |
|
The proxy id of the monitor. Returned: always Sample: 1 |
|
The push token of the monitor. Returned: always Sample: "None" |
|
The radiusCalledStationId of the monitor. Returned: always Sample: "None" |
|
The radiusCallingStationId of the monitor. Returned: always Sample: "None" |
|
The radiusPassword of the monitor. Returned: always Sample: "None" |
|
The radiusSecret of the monitor. Returned: always Sample: "None" |
|
The radiusUsername of the monitor. Returned: always Sample: "None" |
|
The resendInterval of the monitor. Returned: always Sample: 0 |
|
The heartbeat retry interval of the monitor. Returned: always Sample: 60 |
|
The tags of the monitor. Returned: always Sample: [] |
|
The type of the monitor. Returned: always Sample: "http" |
|
True if upside down mode is enabled. Returned: always Sample: false |
|
The url of the monitor. Returned: always Sample: "https://google.com" |
|
The weight of the monitor. Returned: always Sample: 2000 |
- Lucas Held (@lucasheld)