Thank you i see it starts working right now like i expected.
//holo
On Wed, 2015-11-25 at 08:15 +0000, Michael Friedrich wrote:
> > On 25 Nov 2015, at 09:12, holo <[email protected]> wrote:
> >
> > As it is my first mail to Icinga grop, first of all i wan to say
> > hello to everyone.
> >
> > I can't find solution to my problem. I want to check my servers
> > with Icinga2 but i have problem with correct "place" of service
> > execution. I want some services to be monitored from master and
> > some on remote machine, but i can only choose right now between
> > remote or local. Here is my example configuration:
> >
> > hosts.conf
> >
> > object Host "backup.domain.local" {
> > name = "backup.dictionary.local"
> > import "generic-host"
> >
> > address = "172.16.1.159"
> >
> > vars.os = "Linux"
> > vars.remote_client = “backup.domain.local"
>
> You’re specifying the custom attribute here …
>
> >
> >
> > /* host specific check arguments */
> > vars.users_wgreater = 10
> > vars.users_cgreater = 20
> >
> > vars.notification["mail"] = {
> > /* The UserGroup `icingaadmins` is defined in `users.conf`. */
> > groups = [ "icingaadmins" ]
> > }
> >
> >
> > }
> >
> > services.conf:
> >
> > apply Service "ping4" {
> > import "generic-service"
> >
> > check_command = "ping4"
> >
> > assign where host.address
> > }
> >
> > apply Service "swap" {
> > import "generic-service"
> >
> > check_command = "swap"
> >
> >
> > assign where host.vars.remote_client
> > ignore where host.name == NodeName
> > }
> >
>
>
> which you need to assign to the command_endpoint attribute.
>
>
> Otherwise the check is still executed locally.
>
> Kind regards,
> Michael
>
>
>
> > And now if i will set up zones.conf in such way:
> >
> > object Endpoint "manage.domain.local" {
> > }
> >
> > object Endpoint "gwhost.domain.local" {
> > }
> >
> > object Zone "master" {
> > //this is the local node master named = "master"
> > endpoints = [ "manage.domain.local", "gwhost.domain.local"
> > ]
> >
> >
> > every service is executed on my master instance which is
> > manage.dictionary.local and not showing proper swap values (not
> > from gwhost but from manager). When i change Endpoint settings to
> > look like that:
> >
> > object Endpoint "gwhost.domain.local" {
> > host = "gwhost.domain.local"
> > }
> >
> > every service will is executed on gwhost.domain.local and now swap
> > service checking values on correct instance but in that case pings
> > are going to "localhost" not via network what is not desirable
> > (same for ssh service and so on). How to "tell" to some services
> > that they need to be started from master and only some of them on
> > client/endpoint like eg swap, disks check?
> >
> > Regards
> > Holo
> > _______________________________________________
> > icinga-users mailing list
> > [email protected]
> > 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 | [email protected]
>
> ** OSDC 2016 - April - netways.de/osdc **
> ** OSBConf 2016 - September - osbconf.org **
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users