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

    Posts

    Recent Best Controversial
    • RE: idoitcmk Status FAIL

      Zum Problem mit "Undifined index: mandator" gibt es laut i-doit support schon ein Bug Ticket. Da wird noch daran gearbeitet.
      Ich bin in das selbe Problem gelaufen. idoitcmk push sollte aber trotzdem funktionieren (tuts bei mir aber nicht).

      siehe:
      Topic 3766

      lg, Marco

      @oliver-w said in idoitcmk Status FAIL:

      Hallo zusammen,

      dann "missbrauche" ich mal diesen Thread für mein Problem.

      d9ef584d-4304-4408-98f4-a9d704063155-grafik.png

      Sowohl die Anbindung des Addons an die JSON-RPC API als auch die Verbindung zum Livestatus funktioniert nicht.
      idoit und checkmk laufen auf unterschiedlichen Hosts - rein lokaler Testaufbau.

      Hier die entsprechenden Stellen der config.json:

          "i-doit": {
              "url": "http://localhost/src/jsonrpc.php",
              "key": "277lbx7723pcwwk8",
              "username": "admin",
              "password": "admin",
              "language": "en",
              "limitBatchRequests": 500
          },
          "check_mk": {
              "webAPI": {
                  "url": "http://192.168.100.10/TESTSITE/check_mk/webapi.py",
                  "username": "automation",
                  "secret": "MOINKUGACUIJUGHVCAYG",
                  "effectiveAttributes": true
              },
              "livestatus": {
                  "title": "Check_MK",
                  "type": "tcp",
                  "host": "192.168.100.10",
                  "port": 6557
              }
          },
      
      

      Weitere Konfig:
      524dceea-0d4a-4b1c-a4a0-e320f6c58bbc-grafik.png

      e915a3dd-38a7-45b2-87e4-a55f593fdf90-grafik.png

      Wäre für jegliche Hilfe dankbar.

      Schöne Grüße!

      posted in Deutsch
      M
      marcolenhardt
    • addon check_mk 2: idoitcmk Fehlermeldung Undefined index: mandator

      Hallo!

      Ich bin gerade am check_mk2 addon konfigurieren und bekomme beim status test diese Fehlermeldung:

      root@5ae54386fc76:/var/www/html# ./idoitcmk -c /data/scripts/idoitcmk/idoit-access.json -c /data/scripts/idoitcmk/cmk-dev01.json -v status
      Check your environment and configured remote connections
      
      Test PHP environment…
      PHP version: 7.3.17
      Required PHP version: >=7.0.8
      OK
      
      Test loaded PHP modules…
      PHP module: Phar
      PHP module: SPL
      PHP module: calendar
      Required PHP module "calendar" not loaded
      FAIL
      
      Test connection to i-doit JSON-RPC API…
      i-doit JSON-RPC API: You disabled security-related cURL options. This is not recommended.
      Undefined index: mandator [phar:///var/www/html/idoitcmk/src/Command/Status.php:158]
      FAIL
      

      Ich habe derzeit nur sehr kurze test konfig files:
      idoit-access.json:

      {
          "i-doit": {
              "url": "https://cmdb.xxxx.local/src/jsonrpc.php",
              "key": "secure",
              "username": "check_mk",
              "password": "secret",
              "limitBatchRequests": 500,
      	"bypassSecureConnection": true
          }
      }
      

      cmk-dev01.json:

      {
          "check_mk": {
              "webAPI": {
                  "url": "https://dev01.xxx.local/dev01/check_mk/",
                  "username": "automation",
                  "secret": "secure",
                  "effectiveAttributes": true,
                  "bypassSecureConnection": true
              },
              "livestatus": {
                  "title": "dev01",
                  "type": "tcp",
                  "host": "dev01.xxx.local",
                  "port": 6557
              }
          }
      }
      

      Fehlt hier evtl noch ein Parameter im idoit Block?
      Ich kann in der Addon Doku leider nichts dazu finden.

      Lg,
      Marco

      posted in Betrieb
      M
      marcolenhardt