Find Hosts
find_hostsFind and count hosts by name, state, container, or host group; for unreachable hosts, identify the down hosts they depend on.
Instructions
Find hosts by name, state, container or host group, and count them per state. For unreachable hosts it names the down hosts they sit behind. Use it for "which hosts are down" or "how many hosts does tenant X have". For how one known host is doing, use get_host_health.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Part of the host name. Empty: any name. | |
| limit | No | How many hosts to list. The counts always cover every match. | |
| state | No | Only hosts in these states, e.g. ["down", "unreachable"]. | |
| container | No | Only hosts in this container: its exact name or path, e.g. tenant-a. | |
| hostgroup | No | Only hosts in this host group: its exact name. | |
| in_downtime | No | true: only hosts in a downtime. false: only hosts outside one. | |
| acknowledged | No | true: only acknowledged problems. false: only unacknowledged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||