Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. Montgomery
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Groups 0

    Montgomery

    @Montgomery

    1
    Reputation
    66
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Montgomery Unfollow Follow

    Best posts made by Montgomery

    • RE: Dialog parents

      Hallo zusammen,

      für alle die das gleiche Problem haben. Ich konnte mittlerweile über den Support eine Antwort bekommen. Man kann den Parent einfach per Name mitgeben. Bsp. vom Support:

      {
       "jsonrpc": "2.0",
       "method": "cmdb.dialog.create",
       "params": {
        "objID": 29,
        "apikey": "xxxx",
        "language": "en",
        "category": "C__CATG__MODEL",
        "property": "manufacturer", 
        "value": "Tester"
       },
       "id": 1
      }
      
      
      {
       "jsonrpc": "2.0",
       "method": "cmdb.dialog.create",
       "params": {
        "objID": 29,
        "apikey": "xxxx",
        "language": "en",
        "category": "C__CATG__MODEL",
        "property": "title",
        "value": "Tester",
        "parent": "Tester"
       },
       "id": 1
      }
      
      posted in Entwicklung
      M
      Montgomery

    Latest posts made by Montgomery

    • RE: Dialog parents

      Hallo zusammen,

      für alle die das gleiche Problem haben. Ich konnte mittlerweile über den Support eine Antwort bekommen. Man kann den Parent einfach per Name mitgeben. Bsp. vom Support:

      {
       "jsonrpc": "2.0",
       "method": "cmdb.dialog.create",
       "params": {
        "objID": 29,
        "apikey": "xxxx",
        "language": "en",
        "category": "C__CATG__MODEL",
        "property": "manufacturer", 
        "value": "Tester"
       },
       "id": 1
      }
      
      
      {
       "jsonrpc": "2.0",
       "method": "cmdb.dialog.create",
       "params": {
        "objID": 29,
        "apikey": "xxxx",
        "language": "en",
        "category": "C__CATG__MODEL",
        "property": "title",
        "value": "Tester",
        "parent": "Tester"
       },
       "id": 1
      }
      
      posted in Entwicklung
      M
      Montgomery
    • Dialog parents

      Hallo zusammen,

      bei Dialogen gibt es bestimmte Auswahlen die einen Parent haben. Zum Beispiel ist 'C__CATG__MODEL' 'manufacturer' ein Parent für 'C__CATG__MODEL' 'title'. Wenn ich allerdings einen neuen Dialog anlege habe ich keine Möglichkeit den Parent mitzugeben. Auszug aus der Doku zum Anlegen von Dialogen:

      {
          "version": "2.0",
          "method": "cmdb.dialog.create",
          "params": {
              "category": "C__CATG__CPU",
              "property": "manufacturer",
              "value": "IBM",
              "apikey": "xxx",
              "language": "en"
          },
          "id": 1
      }
      

      Wie kann ich hier einen Parent einfügen? Ich habe auch schon versucht einfach einen weiteren 'C__CATG__MODEL' 'title' ohne Parent anzulegen und zuzuweisen. Das funktioniert allerdings nicht.

      Könnt ihr mir hier weiterhelfen?

      Vielen Dank schon Mal!

      posted in Entwicklung
      M
      Montgomery
    • RE: API Kategorie C__CATS__NET für C__OBJTYPE__LAYER3_NET anlegen

      Mit category funktioniert das Ganze. Vielen Dank für die Hilfe! ☺

      posted in Entwicklung
      M
      Montgomery
    • API Kategorie C__CATS__NET für C__OBJTYPE__LAYER3_NET anlegen

      Hallo,

      gerade versuche ich Layer3 Netzte bei uns anzulegen. Das Objekt wird auch ohne Probleme angelegt.
      Aufruf:

      {
          "jsonrpc": "2.0",
          "method": "cmdb.object.create",
          "id": 1,
          "params": {
              "title": "DESCH_10.106.3.0_255.255.255.0",
              "type": "C__OBJTYPE__LAYER3_NET",
              "purpose": "1",
              "apikey": "xxx"
          }
      }
      

      Feedback:

      {
          "id": 16976,
          "message": "Object was successfully created",
          "success": true
      }
      

      Danach versuche ich eine Kategorie C__CATS__NET für das eben angelegte Objekt anzulegen:
      Aufruf:

      {
          "jsonrpc": "2.0",
          "language": "en",
          "method": "cmdb.category.create",
          "id": 1,
          "params": {
              "catgID": "C__CATS__NET",
              "data": {
                  "address": "10.106.3.0",
                  "netmask": "255.255.255.0"
              },
              "objID": "16976",
              "apikey": "xxx"
          }
      }
      

      Feedback:

      {
          "id": null,
          "message": "Error while creating category entry [This method is deprecated and will be removed in a feature release. Use 'cmdb.category.save' instead.]",
          "success": false
      }
      

      Können Sie mir hier weiterhelfen, den ich weiß nicht mehr was ich hier ändern soll. Nehme ich vorgeschlagen die Methode "cmdb.category.save' wird im Log noch folgender Hinweis angezeigt:

      ERROR: An exception occured while processing request: -32602 Invalid parameters: Object id invalid. ID must be positive and higher than two.
      

      Doch aus meiner Sicht habe ich diese ID korrekt gesetzt.

      Vielen Dank schon Mal!

      posted in Entwicklung
      M
      Montgomery
    • RE: Import Inventory mit CheckMK2 Add-On Error Code 500

      Ja ich glaube jetzt bin ich einen Schritt weiter. Allerdings gibt es eine neue Fehlermeldung vom Add On und keine PHP Fehlermeldung mehr.

      Add 2 IPv4 addresses…
      i-doit responded with an error: Internal error: There was an validation error [primary: (dialog) Property has to be an integer or string value.; active: (dialog) Property has to be an integer or string value.]
      
      posted in Betrieb
      M
      Montgomery
    • RE: Import Inventory mit CheckMK2 Add-On Error Code 500

      Folgenden PHP Fehler verursacht das Ganze:

      [Thu Mar 14 13:59:25.913866 2019] [proxy_fcgi:error] [pid 23934] [client X.X.X.X:35622] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to a member function memory() on null in /var/www/html/src/classes/modules/logbook/isys_module_logbook.class.php:566\nStack trace:\n#0 /var/www/html/src/classes/modules/api/model/cmdb/isys_api_model_cmdb_category.class.php(1072): isys_module_logbook->prepare_changes(Object(isys_cmdb_dao_category_g_memory), NULL, Array)\n#1 /var/www/html/src/classes/modules/api/model/cmdb/isys_api_model_cmdb_category.class.php(679): isys_api_model_cmdb_category->sync_wrapper(Array, 1)\n#2 /var/www/html/src/classes/modules/api/model/isys_api_model_cmdb.class.php(258): isys_api_model_cmdb_category->create(Array)\n#3 [internal function]: isys_api_model_cmdb->route('category', Array)\n#4 /var/www/html/src/classes/modules/api/src/Controller/JsonRpcController.php(84): call_user_func_array(Array, Array)\n#5 /var/www/html/src/classes/modules/api/src/Controller/JsonRpcController.php(194): idoit\\Module\\Api\\Controller\\JsonRpcController::runModel(Object(isys_api_model_cmdb), Array)\n#6 /var/...\n'
      
      posted in Betrieb
      M
      Montgomery
    • Import Inventory mit CheckMK2 Add-On Error Code 500

      Hallo,

      ich versuche gerade mit dem CheckMK2 AddOn mittles pull die Inventory Daten zu importieren. Leider gibt der I-doit Server hier noch während des Imports des ersten Servers einen Error Code 500 zurück und bricht ab.

      Web server responded with HTTP status code "500"

      Das Abholen der Daten scheint jedoch zu funktionieren den wenn ich CheckMK mittels fetch-hosts -v abfrage, sehe ich die Inventory Daten. Kann mir hier jemand helfen?

      Vielen Dank schon Mal!

      posted in Betrieb
      M
      Montgomery