Liefert relevante Livestatus-Daten zu Services.
Seitenverzeichnis:
livestatus.service.read
Beschreibung
Liefert den aktuellen Status aller oder eines Service.
Beispielaufruf
{"method":"livestatus.service.read","params":{"apikey":"24174j3tqj","livestatus_instance_name":"myMoniHost","hostname":"Server1"},"id":1,"version":"2.0"}
Parameter
Parameter | Typ | Version |
---|---|---|
livestatus_instance_name | string | ab Version 1.0 |
hostname | string | ab Version 1.0 |
service_description (optional) | string | ab Version 1.0 |
Rückgabewert
Service-Objekt oder Array von Serviceobjekten.
Wert | Typ | Version |
---|---|---|
host_name | string | ab Version 1.0 |
description | string | ab Version 1.0 |
display_name | string | ab Version 1.0 |
check_command | string | ab Version 1.0 |
check_interval | int | ab Version 1.0 |
max_check_attempts | int | ab Version 1.0 |
retry_interval | int | ab Version 1.0 |
last_check | string | ab Version 1.0 |
last_hard_state | int | ab Version 1.0 |
last_state | int | ab Version 1.0 |
plugin_output | string | ab Version 1.0 |
perf_data | string | ab Version 1.0 |
state | int | ab Version 1.0 |
state_type | string | ab Version 1.0 |
livestatus.service.status
Beschreibung
Liefert den aktuellen Status aller oder eines Service.
Beispielaufruf
{"method":"livestatus.service.status","params":{"apikey":"24174j3tqj","livestatus_instance_name":"myMoniHost","hostname":"Server1"},"id":1,"version":"2.0"}
Parameter
Parameter | Typ | Version |
---|---|---|
livestatus_instance_name | string | ab Version 1.0 |
status_identifier | string | ab Version 1.0 |
Rückgabewert
Service-Objekt oder Array von Serviceobjekten.
Wert | Typ | Version |
---|---|---|
state | int | ab Version 1.0 |
output | string | ab Version 1.0 |