Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Seitenverzeichnis: 

...

Seitenverzeichnis: 

Inhalt
maxLevel2
indent10px
stylesquare

...

shd.map_object.create

Beschreibung

Erstellen eines Map-Objekts.

Parameter

ParameterTypVersion
user_id (optional)stringab Version 1.0
shd_map__idstringab Version 1.0
isys_obj__idstringab Version 1.0
positionstringab Version 1.0
widthstringab Version 1.0
titlestringab Version 1.0
is_title_customstringab Version 1.0
labelpositionstringab Version 1.0
imagepathstringab Version 1.0
livestatus_profilestringab Version 1.0
livestatus_servicesarrayab Version 1.0
livestatus_colorstringab Version 1.0
is_imagepath_customstringab Version 1.0
layerindexstringab Version 1.0
textvisiblestringab Version 1.0
iconvisiblestringab Version 1.0
linkstringab Version 1.0
realizertypestringab Version 1.0
shapetypestringab Version 1.0
fillcolorstringab Version 1.0
fillcolor2stringab Version 1.0
iscolorgradientstringab Version 1.0
linecolorstringab Version 1.0
labellinecolorstringab Version 1.0
textcolorstringab Version 1.0
fontstringab Version 1.0
textalignmentstringab Version 1.0
lockedstringab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
messagestring"map_object.update.success"ab Version 1.0
responsestringID des Map-Objektsab Version 1.0
current_datestring-ab Version 1.0

...

shd.map_object.read

Beschreibung

Auslesen eines Map-Objektes.

Parameter

ParameterTypVersion
mapobject_idstringab Version 1.0

...

WertTypVersion
mapobject_idstringab Version 1.0
shd_map__idstringab Version 1.0
isys_obj__idstringab Version 1.0
positionstringab Version 1.0
widthstringab Version 1.0
titlestringab Version 1.0
is_title_customstringab Version 1.0
labelpositionstringab Version 1.0
imagepathstringab Version 1.0
livestatus_profilestringab Version 1.0
livestatus_servicesarrayab Version 1.0
livestatus_colorstringab Version 1.0
is_imagepath_customstringab Version 1.0
layerindexstringab Version 1.0
textvisiblestringab Version 1.0
iconvisiblestringab Version 1.0
linkstringab Version 1.0
realizertypestringab Version 1.0
shapetypestringab Version 1.0
fillcolorstringab Version 1.0
fillcolor2stringab Version 1.0
iscolorgradientstringab Version 1.0
linecolorstringab Version 1.0
labellinecolorstringab Version 1.0
textcolorstringab Version 1.0
fontstringab Version 1.0
textalignmentstringab Version 1.0
lockedstringab Version 1.0

Beispiel 

...

shd.map_object.update

Beschreibung

Bearbeiten eines Map-Objektes.

Parameter

ParameterTypVersion
mapobject_idstringab Version 1.0
shd_map__idstringab Version 1.0
isys_obj__id (optional)stringab Version 1.0
position (optional)stringab Version 1.0
width (optional)stringab Version 1.0
title (optional)stringab Version 1.0
is_title_custom (optional)stringab Version 1.0
labelposition (optional)stringab Version 1.0
imagepath (optional)stringab Version 1.0
livestatus_profile (optional)stringab Version 1.0
livestatus_services (optional)arrayab Version 1.0
livestatus_color (optional)stringab Version 1.0
is_imagepath_custom (optional)stringab Version 1.0
layerindex (optional)stringab Version 1.0
textvisible (optional)stringab Version 1.0
iconvisible (optional)stringab Version 1.0
link (optional)stringab Version 1.0
realizertype (optional)stringab Version 1.0
shapetype (optional)stringab Version 1.0
fillcolor (optional)stringab Version 1.0
fillcolor2 (optional)stringab Version 1.0
iscolorgradient (optional)stringab Version 1.0
linecolor (optional)stringab Version 1.0
labellinecolor (optional)stringab Version 1.0
textcolor (optional)stringab Version 1.0
font (optional)stringab Version 1.0
textalignment (optional)stringab Version 1.0
locked (optional)stringab Version 1.0

Rückgabewert

...

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.map_object.update",
    "params": {
        "apikey": "itp431",
        "mapobject_id": "1",
        "user_id": "19",
        "shd_map__id": "2",
        "isys_obj__id": "1",
        "position": "99;99",
        "width": "50",
        "height": "50",
        "title": "Überschrift Grpß",
        "labelposition": "75",
        "imagepath": "",
        "layerindex": "999",
        "textvisible": "0",
        "iconvisible": "1",
        "link": "maps/220/IDE.map",
        "realizertype": "6",
        "shapetype": "9",
        "fillcolor": "#ff1100",
        "fillcolor2": "#ff1100",
        "iscolorgradient": "1",
        "linecolor": "#ff1100",
        "labellinecolor": "#ff1100",
        "textcolor": "#ff1100",
        "font": "Sans Serif",
        "textalignment": "1",
        "locked": "false",
        "debug": true,
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{ 
    "jsonrpc":"2.0",
    "result":{ 
        "message":"map_object.update.success",
        "response":true,
        "current_date":"2017-08-08"
    },
    "id":1
}



...

shd.map_object.delete

Beschreibung

Löschen einer eines Map-Objektes.

Parameter

ParameterTypVersion
mapmapobject_idstringab Version 1.0

Rückgabewert

...

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.map_object.delete",
    "params": {
        "apikey": "24174j3tqj23phgjrfpv",
        "mapmapobject_id": "93",
        "debug": true,
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{ 
    "jsonrpc":"2.0",
    "result":{ 
        "message":"map_object.delete.success",
        "response":true,
        "current_date":"2017-0708-0108"
    },
    "id":1
}



...

shd.map_object.

...

updateLayerIndex

Beschreibung

Klonen einer Map.

Parameter

ParameterTypVersion
map_idstringab Version 1.0
indexstringab Version 1.0
map_title (optional)mapobject_idstringab Version 1.0

Rückgabewert

...

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.map_object.duplicateupdateLayerIndex",
    "params": {
        "apikey": "24174j3tqj1ialbgclm9",
        "map_id": "83",
        "languagemapobject_id": "en110",
    },     "idindex": 1"4",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{ 
    "jsonrpc": "2.0",
    "result": { 
        "message": "map_object.duplicateupdateLayerIndex.success",
        "response":"23" true,
        "current_date": "2017-0610-25"
    },
    "id": 1
}



...

shd.map_object.status

Beschreibung

Auslesen des Status einer MapAuslesen des Status eines Map-Objekts.

Parameter

ParameterTypVersion
mapmapobject_idstringab Version 1.0
force_status (optional)boolab Version 1.0

Rückgabewert

Beschreibung-
WertTypVersion
messagestatusstringab Version 1.0
responseoutputstringID der Mapab Version 1.0
current_datestring-textstringab Version 1.0
colorstringab Version 1.0
servicesarrayab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.map_object.status",
    "params": {
        "apikey": "24174j3tqj",
        "mapmapobject_id": "8",
        "debug": true46",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{ 
   "jsonrpc": "2.0",

   "result": { 
       "objectsstatus": {
     2,
      "2726output":"Backup {device not mounted",
       "text":"DOWN",
      "textcolor": "n/a#E7A1A2",
      "services":[ 
        "status": "-1",
   { 
            "outputhost_name": "box2",
   
            "colordescription": "#E6E6E6smbox_Backup_Age",
  
             "servicedisplay_statusname": "0|0|0|0""smbox_Backup_Age",
            }"check_command":"shdSmbox_backupAge_shell",
            "2731check_interval":5,
{                 "text": "n/a""max_check_attempts":3,
                "status"retry_interval": "-1",
                "output": "",
           
    "color": "#E6E6E6",
                "service_status": "0|0|0|0"
            },
            "2736": {
                "text": "n/a",
                "status": "-1",
                "output": "",
                "color": "#E6E6E6",
                "service_status": "0|0|0|0"
            }
        },
        "maps": {
            "2": {
                "output": "Remote command execution failed: Could not create directory '/var/lib/nagios/.ssh'.",
                "text": "DOWN",
                "color": "#E7A1A2",
                "status": 2,
                "service_status": "14|0|0|16"
            },
            "3": {
                "text": "n/a",
                "status": "-1",
                "output": "",
                "color": "#E6E6E6",
                "service_status": "0|0|0|0"
            }
        },         "statuslast_check": {1547554511,
            "outputlast_hard_state": "Remote command execution failed: Could not create directory '/var/lib/nagios/.ssh'."2,
            "last_state":2,
            "textplugin_output": "DOWN"Backup device not mounted",
            "colorperf_data": "#E7A1A2",
            "statusstate": 2,
            "servicestate_statustype": "14|0|0|16"1
         }
      ]
   },
    "id": 1
}