How add a variable zone to my configuration icinga2

Hello everyone, I have a question, how can I add the zone of a host as a variable (vars.zone) in my hosts.conf file or in the one that corresponds (I do not occupy icinga director) so that I can monitor the location through the module maps

Hi mauro,

every Host object holds a variable zone which contains the zone the object is a member of:
https://icinga.com/docs/icinga-2/latest/doc/09-object-types/#host

Does that help you?

Best regards,
Daniel