Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. FMS
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 6
    • Groups 0

    FMS

    @FMS

    0
    Reputation
    178
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 24

    FMS Unfollow Follow

    Latest posts made by FMS

    • idoitcmk push didn't work

      Hello,
      I try to configure i-doit an check_mk2.

      check_mk and i-doit are fresh installed and one virt server is defined in i-doit.
      i-doit 1.13.1 PRO
      idoit-cmk2-1.5.1
      check_mk 1.5.0p21.cre

      It i try a push I get:

      Host "TestVirtServer" (/home/fme/WATOPush)
          –
      Check_MK responded with an error message: Check_MK exception: Please specify a name.
      Stack trace:
          #0 phar:///var/www/htdocs/idoitcmk/vendor/bheisig/checkmkwebapi/src/API.php(274): bheisig\checkmkwebapi\API->evaluateResponse(Array)
          #1 phar:///var/www/htdocs/idoitcmk/vendor/bheisig/checkmkwebapi/src/Host.php(98): bheisig\checkmkwebapi\API->request('add_host', Array)
          #2 phar:///var/www/htdocs/idoitcmk/src/Command/Push.php(618): bheisig\checkmkwebapi\Host->add('TestVirtServer', '/home/fme/WATOP...', Array, true)
          #3 phar:///var/www/htdocs/idoitcmk/src/Command/Push.php(484): idoit\idoitcmk\Command\Push->createHost(26, Array, 'TestVirtServer')
          #4 phar:///var/www/htdocs/idoitcmk/src/Command/Push.php(151): idoit\idoitcmk\Command\Push->createHosts()
          #5 phar:///var/www/htdocs/idoitcmk/vendor/bheisig/cli/src/App.php(899): idoit\idoitcmk\Command\Push->execute()
          #6 phar:///var/www/htdocs/idoitcmk/vendor/bheisig/cli/src/App.php(383): bheisig\cli\App->executeCommand(Object(idoit\idoitcmk\Command\Push))
          #7 phar:///var/www/htdocs/idoitcmk/vendor/bheisig/cli/src/App.php(314): bheisig\cli\App->satisfyUserChoice()
          #8 phar:///var/www/htdocs/idoitcmk/bin/idoitcmk.php(145): bheisig\cli\App->run()
          #9 /var/www/htdocs/idoitcmk(2): include('phar:///var/www...')
          #10 {main}
      

      Any clue?

      Thanks

      Frank

      posted in General
      F
      FMS
    • check_mk2

      Hallo,

      ich teste gerade das check_mk2 Addon und habe leider einige Probleme:

      i-doit - 1.12.1 PRO Testlizenz

      Check_MK 2 Add-on: 1.5.0
      Check_MK 1.5.0p13

      • Ändern des Pfades von idoitcmk app:
        Bekomme folgende Meldung:
      "success":true,"data":null,"message":null}
      

      Der Pfad ist unverändert

      • Agent "No Agent"
        Ich möchte einen Host nur pingen. Dafür wollte ich den Agent auf "No Agent" stellen
        Im Log steht:
      [2019-04-10 14:06:02 0.34033200] INFO: ObjectId = 29 and Hostname = fme-lap
      [2019-04-10 14:06:02 0.34033500] INFO: Compiled command string: /usr/local/bin/idoitcmk push --yes --include-ids 29
      [2019-04-10 14:06:02 0.34033700] INFO: Executing command...
      [2019-04-10 14:06:03 0.32855100] ERROR: Execution failed with exitStatus 1 (Misuse of shell builtins (according to Bash documentation
      

      Führe ich das Kommando auf der Console aus, bekomme ich:

      /usr/local/bin/idoitcmk push --yes --include-ids 29
      Generate WATO configuration based on CMDB data
      
      Fetch all relevant objects from i-doit by their identifiers…
      1 object will be used
      
      Looking for hosts in Check_MK…
      Found 1 host
      1 host will be used
      
      Match objects from i-doit with hosts from Check_MK…
      
      Fetch remote management controller from i-doit…
      
      Find contact groups for hosts…
      
      No hosts in Check_MK will be updated
      1 host in Check_MK will be created
      Check_MK responded with an error message: Check_MK exception: Unknown host tag ping
      fme@fme-lap:/var/www/html/idoit_1_12$
      

      Der Host tag "ping" ist aber in check_mk "buildin"

      • Location:
        z.B. Germany als Location gesetzt,:
      
      /usr/local/bin/idoitcmk push --yes --include-ids 29
      Generate WATO configuration based on CMDB data
      
      Fetch all relevant objects from i-doit by their identifiers…
      1 object will be used
      
      Looking for hosts in Check_MK…
      Found 2 hosts
      2 hosts will be used
      
      Match objects from i-doit with hosts from Check_MK…
      
      Fetch remote management controller from i-doit…
      
      Find contact groups for hosts…
      
      1 host in Check_MK will be updated
      No hosts in Check_MK will be created
      Check_MK responded with an error message: Check_MK exception: Unknown host tag group C__CATG__LOCATION__parent
      
      • Parent host
        Erscheint nicht in check_mk Host status

      Löschen eines statischen Host tags:

      {"success":true,"data":null,"message":null},
      

      Tag wird aber nicht gelöscht

      Ich habe alles nach Anleitung konfiguriert.

      Habe ich hie irgendwo einen Config Fehler gemacht, oder funktionierten die Features noch nicht?

      Danke

      Frank Meier

      posted in Betrieb
      F
      FMS
    • RE: check_mk trigger script

      @patrickfeiler said in check_mk trigger script:

      Hallo Frank,

      die Problematik hier ist, dass der Webserver hier das Script ausführt.
      In dem Script wird via Public-Key die Authentifizierung vorgenommen und dies muss auch für den Webserver konfiguriert werden.
      Jenachdem wie das Filesystem aussieht sollte unter /root ein ordner .ssh liegen, diesen einfach nach /var/www kopieren und die Rechte anpassen.
      Getestet werden kann die Verbindung mittels kurzem Aufruf von
      sudo -u www-data ssh checkmkinstanz@dercmkserver.example

      Gruß
      Patrick

      Hallo Patrick.

      das war der Trick!
      Vielen Dank

      Frank

      posted in Betrieb
      F
      FMS
    • check_mk trigger script

      Hallo,

      die Funktion "Start the export and trigger transfer shellscript" scheint in meiner Installation nicht zu funktionieren
      Es kommt die Meldung "Forcing the transfer No errors during transfer!", es werden aber nicht einmal die check_MK Dateien angelegt. Wenn ich "Start the export" benutze, werden die Dateien korrekt angelegt und bei einem manuellen Aufruf von "/var/www/htdocs/checkmk_transfer.sh" werden die Dateien an den check_mk server übetragen.
      Woran kann das liegen?

      Version 1.10.1 OPEN

      Gruß

      Frank Meier

      posted in Betrieb
      F
      FMS
    • RE: Check_mk manuelle Schwellwerte

      Hallo Daniel,

      danke für die Info und ein frohes Neues.

      Dann harren wir mal der Dinge die da kommen, denn ich finde die Konstellation i-Doit und Check_mk äußerst interessant.

      Gibt es schon eine GROBE Vorstellung, wann die API releast werden soll?

      Gruß

      Frank

      posted in Betrieb
      F
      FMS
    • Check_mk manuelle Schwellwerte

      Hallo,

      ich möchte Check_mk einerseits mittels i-doit füllen, aber andererseits für bestimme Hosts eigene Schwellwerte definieren(z.B. Füllstand Festplatten).

      Bei der nächsten Übertragung sind meine manuellen Einstellungen aber wieder mit den default Werten überschrieben.

      Gibt es eine Lösung dafür?

      Gruß

      Frank

      posted in Betrieb
      F
      FMS