Status

Seitenverzeichnis: 



shd.status.read

Auslesen der Monitoring-Informationen.

Parameter

ParameterTypVersion
object_idsarray<string>ab Version 1.0
[ with_profile ]boolab Version 1.0

Rückgabewert

WertTypVersion
colorstringab Version 1.0
statusintab Version 1.0
service_statusstringab Version 1.0
outputstringab Version 1.0
textstringab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort

{
  "method" : "shd.status.read",
  "version" : "2.0",
  "params" : {
    "object_ids" : [
      "1062",
      "5124",
      "5134",
      "5130"
    ],
    "apikey" : "1ialbgclm9"
  },
  "id" : "1"
}
{
  "id" : "1",
  "result" : {
    "5134" : {
      "color" : "#78D168",
      "status" : 0,
      "service_status" : "0|0|0|3",
      "output" : "OK - 192.168.93.236: rta 0.277ms, lost 0%",
      "text" : "OK"
    },
    "5130" : {
      "color" : "#E7A1A2",
      "status" : 2,
      "service_status" : "0|1|0|7",
      "output" : "CRITICAL",
      "text" : "DOWN"
    },
    "5124" : {
      "color" : "#E7A1A2",
      "status" : 2,
      "service_status" : "14|0|0|16",
      "output" : "Remote command execution failed: Could not create directory '\/var\/lib\/nagios\/.ssh'.",
      "text" : "DOWN"
    }
  },
  "jsonrpc" : "2.0"
}

(c) 2024 SHD System-Haus-Dresden GmbH | Impressum https://www.shd-online.de/impressum/