Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    I-doit v1.1 - Fehler JSON-RPC Schnittstelle

    Scheduled Pinned Locked Moved Entwicklung
    8 Posts 2 Posters 2.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      alex123
      last edited by

      Beim Ausführen der Methode cmdb.object_type_categories.read werden nur die englischen Namen der Kategorie aufgelistet. Es fehlt die ID und die Konstante

      
      {
        "catg": [
          {
            "id": null,
            "title": "SLA",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Drive",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Connectors",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "IT-Service assignment",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Database assignment",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Interface",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Device",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Logical devices (LDEV Server)",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Logical devices (Client)",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "FC port",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Host Bus Adapter (HBA)",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Accounting",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Storage Area Network",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Cluster memberships",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Virtual host",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Virtual host",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Guest systems",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Virtual Switches",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Backup (assigned Objects)",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Group memberships",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Share Access",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Servicezuweisung",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "NDO parameters",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Raid-Array",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Object vitality",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "General",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Contact assignment",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Location",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Graphic card",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Model",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Shares",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Host definition",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Nagios (host)",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Form factor",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Sound card",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "CPU",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Controller",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Memory",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Power consumer",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Interface",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Network",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Port",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Port overview",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Direct Attached Storage",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "log. Port",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Manual assignment",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Emergency plan assignment",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Host address",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Files",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Software assignment",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Access",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Backup",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Object picture",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Invoice",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Tickets",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          },
          {
            "id": null,
            "title": "Cabling",
            "const": null,
            "multi_value": null,
            "parent": null,
            "source_table": null
          }
        ]
      }
      
      1 Reply Last reply Reply Quote 0
      • A Offline
        alex123
        last edited by

        Im JSON-RPC Handbuch wird bei der Kategorie "Hostadresse" (C__CAT_G__IP) das Feld "net" als Pflichtfeld angegeben. Ich hab festgestellt , dass dieses Feld ausgelassen werden kann. Allerdings muss unbeding das feld "net_type" ausgefüllt sein, sonst kann man die Kategorie nicht erstellen.

        Wird es ein aktualisiertes Handbuch für die 1.1er version geben?

        1 Reply Last reply Reply Quote 0
        • A Offline
          alex123
          last edited by

          Wenn ein update auf die Kategorie (Hostadresse) mit cmdb.category.update durchgeführt wird und diese Kategorie nocht nicht existiert, kommt als rückmeldung immer folgendes:
          {"message":"Category successfully saved","success":true}

          Aber es wird kein Eintrag angelegt. Entweder müsste eine Fehlermeldung kommen, dass keine Kategorie-ID angegeben wurde oder der Eintrag sollte wirklich angelegt werden.

          1 Reply Last reply Reply Quote 0
          • A Offline
            alex123
            last edited by

            Wenn ein update auf die Kategorie (Hostadresse) mit cmdb.category.update durchgeführt wird und das feld "ipv4_address" ausgelassen wird, dann wird die IP-Adresse mit einer zufälligen(?) Zahl überschrieben.

            1 Reply Last reply Reply Quote 0
            • A Offline
              alex123
              last edited by

              Die Unterkategorie "Lokaler Massenspeicher-Gerät" (C__CMDB__SUBCAT__STORAGE__DEVICE) kann nicht mit der methode cmdb.category.create erstellt werden.
              Folgende Antwort wird zurückgegeben:

              {"message":"Error while creating category entry","success":false}
              
              1 Reply Last reply Reply Quote 0
              • A Offline
                alex123
                last edited by

                Bei der Verwendung der Methode cmdb.object_types.read wird der filter Parameter "title" ignoriert.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  senycorp
                  last edited by

                  Hi Alex,

                  Wir möchten uns in erster Linie herzlichst für deine BugReports bedanken. Ich bräuchte allerdings in einigen Teilen weitere Informationen:

                  1. Die Unterkategorie "Lokaler Massenspeicher-Gerät" (C__CMDB__SUBCAT__STORAGE__DEVICE) kann nicht mit der methode cmdb.category.create erstellt werden.

                  Dieses Problem konnten Wir nicht nachstellen. Könntest du evt. uns den Request zusenden, durch den der Fehler hervorgerufen wird.

                  2.Bei der Verwendung der Methode cmdb.object_types.read wird der filter Parameter "title" ignoriert.

                  Der Request muss wie folgt aussehen:

                  
                  array(
                          "method" => "cmdb.object_types.read",
                          "params" => array(
                              "filter" => array(
                                  "titles" => array('%server%', '%print%'),
                              ),
                          ),
                  
                  

                  VG

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    alex123
                    last edited by

                    @skekec:

                    Hi Alex,

                    Wir möchten uns in erster Linie herzlichst für deine BugReports bedanken. Ich bräuchte allerdings in einigen Teilen weitere Informationen:

                    1. Die Unterkategorie "Lokaler Massenspeicher-Gerät" (C__CMDB__SUBCAT__STORAGE__DEVICE) kann nicht mit der methode cmdb.category.create erstellt werden.

                    Dieses Problem konnten Wir nicht nachstellen. Könntest du evt. uns den Request zusenden, durch den der Fehler hervorgerufen wird.

                    hallo! tut mir leid wegen der späten antwort. ich bin leider nicht mehr mit i-doit beschäftigt. den request zum erstellen eines "lokalen massenspeichers" hab ich jetzt nicht zur hand. aber vielleicht könnt ihr mir euren request senden, mit dem ihr erfolgreich einen eintrag machen konntet? ich habe damals vieles ausprobiert und nur mit dieser speziellen unterkategorie (C__CMDB__SUBCAT__STORAGE__DEVICE) schwierigkeiten gehabt.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post