Hi All,
I'm trying to use Platform* constants to group hosts. My
/etc/conf.d/groups.conf below :


object HostGroup "Ubuntu" {
  display_name = "Ubuntu"

  assign where PlatformName >= "Ubuntu"

}

object HostGroup "PlatformName" {
  display_name = PlatformName

  assign where PlatformName >= ""
}

object HostGroup "PlatformArchitecture" {
  display_name = PlatformArchitecture
  assign where PlatformArchitecture >= ""
}

Unfortunately the PlatformName show _NAME="Ubuntu 14.04.3 LTS instead of
only "Ubuntu 14.04.3 LTS". PlatformVersion also show ID=\"14.04 instead of
only 14.04.

Is this expected or bug? if expected why icinga have to use _NAME and ID in
front of each value? Are there any way including text processing to remove
_NAME and ID?

I use Ansible to provision icinga so I might be able to assign ansible
variable but I think using default consts might be better or maybe set
variable per host is better?
Thank you.
Regards,





-- 
Muhammad Panji
http://www.panji.web.id
http://www.kurungsiku.com
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to