Hi, host object configuration is mentioned below,
*object Host NodeName { import "generic-host" /* Specify the address attributes for checks e.g. `ssh` or `http`. */ address = "127.0.0.1" /* Set custom attribute `os` for hostgroup assignment in `groups.conf`. */ vars.os = "Linux" /* Define http vhost attributes for service apply rules in `services.conf`. */ vars.http_vhosts["http"] = { http_uri = "/" }* * /* Uncomment if you've sucessfully installed Icinga Web 2. */ //vars.http_vhosts["Icinga Web 2"] = { // http_uri = "/icingaweb2" //} /* Define disks and attributes for service apply rules in `services.conf`. */ vars.disks["disk"] = { /* No parameters. */ } vars.disks["disk /"] = { disk_partitions = "/" } /* Define notification mail attributes for notification apply rules in `notifications.conf`. */ vars.notification["mail"] = { /* The UserGroup `icingaadmins` is defined in `users.conf`. */ groups = [ "icingaadmins" ] }}* Regards, Tejas On Fri, Jun 19, 2015 at 5:05 PM, Tejas Gadaria <refond.g...@gmail.com> wrote: > Yes, I have mentioned the warning i am receiving when executing "icinga2 > daemon -C" > > > > > > *information/ConfigItem: Committing config itemsinformation/ApiListener: > My API identity: JIVVDPMGWAPP23.zeomega.locwarning/ApplyRule: Apply rule > 'satellite-host' (in C:\Program Files > (x86)\ICINGA2\etc\icinga2/conf.d/satellite.conf: 29:1-29:41) for type > 'Dependency' does not match anywhere!warning/ApplyRule: Apply rule '' (in > C:\Program Files (x86)\ICINGA2\etc\icinga2/conf.d/services.conf: > 58:1-58:65) for type 'Service' does not match > anywhere!information/ConfigItem: Checked 1 ApiListener(s).* > > As I am using satellite host, I am using below configuration > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > */* * Host and Service templates for the Agent Setup. *//** * Provides > settings for satellite hosts managed by 'icinga2 repository'. * Define your > global attributes here, for example custom * attributes used for > notifications, etc. */template Host "satellite-host" { > vars.notification["mail"] = { groups = [ "icingaadmins" ] }}/** * > Provides settings for satellite services managed by 'icinga2 repository'. * > Define your global satellite attributes here, for example custom * > attributes used for notifications, etc. */template Service > "satellite-service" { vars.notification["mail"] = { groups = [ > "icingaadmins" ] }}apply Dependency "satellite-host" to Host { > parent_host_name = host.zone assign where host.zone != "" && > "satellite-host" in host.templates}* > > > Regards, > Tejas >
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users