Cet appel permet de recevoir des informations sur un hôte.
| Paramètre | Description |
|---|---|
| uuid | UUID de l'hôte |
| Codes de retour | Explications |
|---|---|
| 200 | OK |
| 401 | Permission refusée (Mauvais token) |
| 404 | Hôte introuvable |
business_impact : 0, 1, 2, 3, 4, 5
output : text
long_output : text
raw_perf_data : text, version texte de perf_data
perf_data : liste de métriques au format :
value : number
uom : Unit Of Mesure / Unité de mesure
warning : valeur d'alerte
critical : valeur d'alerte critique
min : valeur minimale possible
max : valeur maximale possible
{
"status": "OK",
"host_display_name": "localhost",
"notes_multi_url": "UI_Configuration~=http://localhost:7766~=write~=NO~#~UI_Visualisation~=http://localhost:7767~=stats~=OPEN_IN_NEW_TAB"
"raw_perf_data": "rta=0.021000ms;1000.000000;3000.000000;0.000000 pl=0%;100;100;0",
"perf_data": [{"name": "rta", "min": 0, "max": null, "value": 0.021, "warning": 1000, "critical": 3000, "uom": "ms"}, {"name": "pl", "min": 0, "max": 100, "value": 0, "warning": 100, "critical": 100, "uom": "%"}],
"long_output": "",
"notes_url": "http://localhost/",
"host_name": "localhost",
"context": "NOTHING",
"status_since": 1540457802,
"status_confirmed_since": 1540457802,
"business_impact": 2,
"output": "PING OK - Packet loss = 0%, RTA = 0.02 ms",
"confirmated_state" : "HARD",
"host_uuid": "408cd29ad37611e8810e0800277b7e16"
}
|