try to set address for host: object Host "mon.re.domain.com" { import "satellite-host" address = x.x.x.x }
14.09.2015, 14:34, "Henti Smith" <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" { > 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> wrote: >> Could you please post a host declaration ? >> >> 14.09.2015, 11:52, "Henti Smith" <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 to >>> address in this context. >>> >>> Any suggestions ? >>> >>> Regards >>> Henti >>> >>> On Mon, Sep 14, 2015 at 9:20 AM, Henti Smith <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 >>> https://lists.icinga.org/mailman/listinfo/icinga-users >> >> ------ >> Романеев Василий >> Мобильный: +7-987-636-62-67 >> skype romaneev >> _______________________________________________ >> icinga-users mailing list >> 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 ------ Романеев Василий Мобильный: +7-987-636-62-67 skype romaneev _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users