On 28.10.2016 23:13, Antony Stone wrote:
> Suppose I have the following definition:
>
> object User "Antony" {
> import "generic-user"
> display_name = "Antony Stone"
> email = "[email protected]"
> }
>
> http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/object-types
> tells me (in section 9.34) that I can reference the properties "display_name"
> and "email" (in a command file for noticiations, for example), but what
> variable name would I use to get the "Antony" value?
>
> In other words, what's the actual name of the object called as a variable?
Every object has a ".name", but it depends where you want to use it...
Regards
Markus Frosch
--
Icinga Open Source Monitoring
https://www.icinga.org
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users