Am 14.09.2015 um 13:40 schrieb Henti Smith:
Hi Romaneev,

The configuration is generated by the update-config command. I'm
trying to find out how to set the address to the satellite host
without having to edit the files.

That's by design to use the cluster-zone check, and cannot be influenced
by node update-config at this time. There's a discussion ongoing in the
dev tracker about sending object attributes from satellites/clients to
the master, though without a solution: https://dev.icinga.org/issues/9332

Kind regards,
Michael





Regards.
Henti


On Mon, Sep 14, 2015 at 1:37 PM, Romaneev Vasily <enter...@yandex.ru
<mailto:enter...@yandex.ru>> wrote:

    try to set address for host:
    object Host "mon.re.domain.com <http://mon.re.domain.com>" {
            import "satellite-host"
            address = x.x.x.x
    }

    14.09.2015, 14:34, "Henti Smith" <he...@geekware.co.za
    <mailto:he...@geekware.co.za>>:
    > This is on my Master :
    >
    > root@prd-qua-za-mon:/etc/icinga2# cat
    ./repository.d/hosts/mon.re.domain.com.conf
    > object Host "mon.re.domain.com <http://mon.re.domain.com>" {
    >         import "satellite-host"
    > }
    >
    > root@prd-qua-za-mon:/etc/icinga2# cat conf.d/satellite.conf
    > template Host "satellite-host" {
    >         enable_flapping = 1
    >         check_command = "hostalive"
    > }
    >
    > Regards.
    > Henti
    >
    > On Mon, Sep 14, 2015 at 12:12 PM, Romaneev Vasily
    <enter...@yandex.ru <mailto:enter...@yandex.ru>> wrote:
    >> Could you please post a host declaration ?
    >>
    >> 14.09.2015, 11:52, "Henti Smith" <he...@geekware.co.za
    <mailto:he...@geekware.co.za>>:
    >>
    >>> Since this was a satellite, I added check_command =
    "hostalive" to conf.d/satellite.conf. this didn't work, because it
    seems update-config adds check_command = "cluster-zone" to the
    .conf in repository.d If I remove it, I get a proper error, which
    is simple.
    >>>
    >>> check_ping: Invalid hostname/address -
    >>>
    >>> Usage:
    >>> check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
    [-p packets] [-t timeout] [-4
    >>>
    >>> The reason I found in icinga2 object list
    >>>
    >>> The address variable is empty. I cannot find a way to assign
    host.name <http://host.name> to address in this context.
    >>>
    >>> Any suggestions ?
    >>>
    >>> Regards
    >>> Henti
    >>>
    >>> On Mon, Sep 14, 2015 at 9:20 AM, Henti Smith
    <he...@geekware.co.za <mailto:he...@geekware.co.za>> wrote:
    >>>> Good morning all.
    >>>>
    >>>> My understanding is the the host states is determined from
    the agent connectivity. this is causing some issues on our
    installation as some of our sites can sit on some very dodgy networks.
    >>>>
    >>>> We've noticed that the agent does not reconnect and hosts
    show as off-line when they are reachable, needing only a restart
    of icinga on the client. (not really sure how to troubleshoot this
    and log a bug as running debug until this happens will fill up disk)
    >>>>
    >>>> i've tried changing the check_command to hostalive but this
    does not seem to work. How else can i achieve host status being
    monitored by ping and have a separate service check for the agent.
    >>>>
    >>>> Regards
    >>>> Henti
    >>>>
    >>>> --
    >>>> --
    >>>
    >>> --
    >>> --
    >>>
    >>
    >>> ,
    >>>
    >>> _______________________________________________
    >>> icinga-users mailing list
    >>> icinga-users@lists.icinga.org
    <mailto:icinga-users@lists.icinga.org>
    >>> https://lists.icinga.org/mailman/listinfo/icinga-users
    >>
    >> ------
    >>  Романеев Василий
    >> Мобильный: +7-987-636-62-67 <tel:%2B7-987-636-62-67>
    >> skype romaneev
    >> _______________________________________________
    >> icinga-users mailing list
    >> icinga-users@lists.icinga.org
    <mailto:icinga-users@lists.icinga.org>
    >> https://lists.icinga.org/mailman/listinfo/icinga-users
    >
    > --
    > --
    >
    > ,
    >
    > _______________________________________________
    > icinga-users mailing list
    > icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org>
    > https://lists.icinga.org/mailman/listinfo/icinga-users

    ------
     Романеев Василий
    Мобильный: +7-987-636-62-67 <tel:%2B7-987-636-62-67>
    skype romaneev
    _______________________________________________
    icinga-users mailing list
    icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org>
    https://lists.icinga.org/mailman/listinfo/icinga-users




--
--


_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users


-- 
Michael Friedrich, DI (FH)
Senior Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | michael.friedr...@netways.de

** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to