Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scroll Ignore
scroll-viewporttrue
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse
Panel
titleSommaire

Table of Contents
stylenone

Description

Cet appel permet de recevoir des informations sur un hôte.

Paramètres

ParamètreDescription
uuidUUID de l'hôte

Réponse

Codes de retour

Codes de retourExplications
200

OK

401

Permission refusée (Mauvais token)

404

Hôte introuvable

Retour du code 200

  • host_uuid : text
  • host_name : text
  • host_display_name : text
  • status : text
    • OK
    • WARNING
    • CRITICAL
    • UNKNOWN
    • MISSING-DATA
    • SHINKEN-INACTIVE
  • confirmed_state : text
    • SOFT
    • HARD
  • status_since : epoch (en secondes)
  • status_confirmed_since  epoch (en secondes, ou vide en état SOFT)
  • context : text
    • NOTHING
    • ACKNOWLEDGED
    • PARTIAL-ACKNOWLEDGED
    • INHERITED-ACKNOWLEDGED
    • DOWNTIME
    • PARTIAL-DOWNTIME
    • INHERITED-DOWNTIME
    • FLAPPING
    • PARTIAL-FLAPPING
    • DISABLED
  • 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

  • notes_url : text
  • notes_multi_url : text

Exemple

Code Block
titlehttp://localhost:50100/api/v1/host/408cd29ad37611e8810e0800277b7e16?token=ak5zv6t5s25r6g4
{
 "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"
}