Posts by bodsch

This forum was archived to /woltlab and is now in read-only mode.

    Wie ich ja schon bei Twitter schrieb


    Top-Down Konfiguration.
    Du kippst deine checks oben rein und die werden nach unten repliziert.
    Die Ergebnisse übermittelt der Agent über den Satelliten zurück an den Master.

    Alle Komponenten kommunizieren dabei über die API

    Du möchtest aber scheinbar, dass deine Applikation ein Event an den Agent schickt?


    Wir wollen nicht von außen nachfragen, ob es der Software gut geht, sondern die Software soll dem Icinga2 Bescheid geben. Perfektes Beispiel: Bareos übermittelt Status vom Backup :-)

    Da fühle ich mich gerade etwas überfragt.

    Ich hätte eher einen check auf die Bareos API gemacht. Sofern es die überhaupt gibt.

    Moin Moin!

    I have an strange problem with the creating of (satellite) certificates at the CLI.

    i wrote a small script to create these certificates:

    this script runs perfectly with all icinga2 versions < 2.8

    since yesterday, is icinga 2.8 for Alpine available.

    now i get this result:

    when i look into the Icinga Sourcecode, i found this position:…rpcconnection-pki.cpp#L84

    i my current fall, all certificates are fresh, the CA is created with 2.8 few minutes ago.

    It is possible, that my old way is now unsupported?

    test your database connection via command-line.

    mysql -uroot -p -h localhost ...

    mysql -uicinga2 -p -h localhost ...

    please use the correct passwords!

    if this fails, configure the database properly

    but ... you should learn the basics before doing anything more complex!

    ohh ... hirn
    please ... use your brain and not copy-paste! :)

    add a slash in front of usr: /usr/sbin/apache2 -V | grep MPM

    thats look like an apache missconfiguration

    please try first this

    1. apache2ctl configtest

    then, look, which apache mpm are installed:

    1. /usr/sbin/apache2 -V | grep MPM

    (sorry, i use primary nginx, thats was (and is) easesier for me ;) )

    good morning guys!

    i will try to exchange my full static configuration with an dynamic part.

    thats include some servicegroups like this:

    1. object ServiceGroup "heap-memory" {
    2. display_name = "Heap Memory"
    3. assign where match("HeapMemory*",
    4. }

    i try it with this curl styled and hot-needled code:

    1. curl \
    2. -v \
    4. -H 'Accept: application/json' \
    5. -X PUT \
    6. -k "https://$ICINGA2_HOST:$ICINGA2_API_PORT/v1/objects/servicegroups/group_dummy_1" \
    7. -d '{ "attrs": { "display_name": "group_dummy_1", "assign": "match(\"HeapMemory*\"," } }' | python -m json.tool

    but i becomes this error back:

    after a googleling and inspect some icinga lines of code i found nothing to do this. :(

    without the assign part, the curl command works.

    please, can you help me!?


    I will modify an simple service check over the API:

    1. curl -k -uroot:icinga -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-HTTP-Method-Override: POST' --data '{"templates":["generic-service"], "attrs": { "check_interval": 60, "vars": { "http_url":"/acces
    2. s/login", "http_address":""}}, "filter":"\"new_http\""}'

    But my result are empty:

    1. {"results":[]}

    when i turned on the Debug Log, i see the connection and nothing else:

    I have this never seen before and i'm confused.

    Is my curl call wrong?