Distributed Monitoring with Master, Satellites, Clients and Director

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

    I'm confused, but maybe I just do not correctly understand the basic concepts (((


    Icinga 2 as master with Director

    icinga 2 as satellite host

    Windows Server with Icinga Agent as Client

    Windows Server have paretn satellite


    Client zone and endpoint define on Icinga .../zones.d/satellite

    if i define host in same folder - all work fine

    if i import zone & endpoints in director and define host from web -

    host is pending.


    what am I doing wrong?

    whether it is possible in principle to create a three-level configuration uses director

    or have i been supporting two separate configurations: zones.d and director?

  • or have i been supporting two separate configurations: zones.d and director?

    The two configurations are separated. One is in /etc/icinga2 folder and the other one is hold inside /var/... folder.

  • hi watermelon, thank you for our answer.

    Where are the master and satellites located in terms of subnets?


    Also, what is your goal with this type of configuration?

    master and satelline in diferent subnet. Subnet Connect acros WAN.

    my goal use director as one configuration point.

    at now a hav two same configuration.

    1. icinga director for local host

    2. icinga text configuration for remote satellie and client


    it is not comfortable )


    in director i create zone, edpoint and host for satellite

    its work fine


    in director i create zone, edpoint and host for client

    in zone propertis i write satellitte as a parent

    all work fine


    BUT

    in satellite i not see check client, may be check do master?

  • Good day Colleagues, I decided my question, I hope that it's correct.

    Thanks to those who helped )


    I will describe how, but in advance I apologize for my English.


    Configuration

    master

    satellite

    client (win)


    in Director

    1. create satellite and clien zone and endpoint

    satellite zone have parent master

    client zone have parent satellite


    2. create two host templates

    firs for satellite, second for client

    in templates satellite appoint cluster zone - satellite zone

    in templates client appoint cluster zone - client zone


    3. create host for satellite & client and assign them the created templates.


    4. deploy configuration


    in satellite

    5. install icinga without configuration.


    6. configuration satellite with icinga node wizard

    on concole type:

    sudo icinga2 node wizard


    Master Common Name (CN from your master setup): master

    ……

    Master endpoint host (Your master's IP address or FQDN): master

    ……

    Please specify the master connection for CSR auto-signing (defaults to master endpoint host):
    Host []
    : master

    ……...

    Accept config from master? [y/N]: Y

    Accept commands from master? [y/N]: Y


    7. edit local configuration file

    disable local configuration file

    /etc/icinga2/)icinga.conf

    //include_recursive "conf.d"

    add director global config

    /etc/icinga2/)zones.conf

    object Zone "director-global" { global = true }


    8. restart icinga service

    check when server get configuration files

    /var/lib/icinga2/api/zones)

    · director-global

    · icinga server name


    9. check system configuration:

    · sudo service icinga2 checkconfig

    may be we have error duplicate endpoint

    disable endpoint in local configuration

    /etc/icinga2/)zones.conf

    //object Endpoint NodeName {}

    restart service, all will work fine


    in client

    10. configuration client with icinga node wizard

    on concole type:

    ·"c:\Program Files\ICINGA2\sbin\icinga2.exe node wizard”


    Master Common Name (CN from your master setup): Satellite

    ……

    Master endpoint host (Your master's IP address or FQDN): satellite

    ……

    Please specify the master connection for CSR auto-signing (defaults to master endpoint host):
    Host []
    : master

    ……...

    Accept config from master? [y/N]: Y

    Accept commands from master? [y/N]: Y


    7. edit local configuration file

    disable local configuration file

    C:\ProgramData\icinga2\etc\icinga2\icinga.conf


    //include_recursive "conf.d"

    add director global config

    C:\ProgramData\icinga2\etc\icinga2\zones.conf

    object Zone "director-global" { global = true }


    8. restart icinga service

    check when server get configuration files

    C:\ProgramData\icinga2\var\lib\icinga2\api\zones

    · director-global

    · icinga client name


    9. check system configuration:

    c:\Program Files\ICINGA2\sbin\icinga2.exe daemon –C”

    may be we have error duplicate endpoint

    disable endpoint in local configuration

    C:\ProgramData\icinga2\etc\icinga2\zones.conf


    //object Endpoint NodeName {}

    restart service, all will work fine