[icinga-users] Is hyphen not allowed in variable name?

Michael Martinez mwtzzz at gmail.com
Tue Aug 9 22:13:17 CEST 2016


On Tue, Aug 9, 2016 at 12:21 PM, Antony Stone
<Antony.Stone at icinga.open.source.it> wrote:

>
> Hyphens are allowed in hostnames - there are plenty of examples of this in the
> icinga documentation.
>
> However, it looks like your problem is {} vs. [] - what happens if you keep
> the hyphen but change the [] to {} on line 38?


Same error:
critical/config: Error: Expression cannot be assigned to.
Location: in /media/ephemeral0/icinga2/etc/icinga2/conf.d/hosts/icinga_host.conf:
38:1-38:73
/media/ephemeral0/icinga2/etc/icinga2/conf.d/hosts/icinga_host.conf(36):
all_hostgroups += { "discovery101" = 1 }
/media/ephemeral0/icinga2/etc/icinga2/conf.d/hosts/icinga_host.conf(37):
/media/ephemeral0/icinga2/etc/icinga2/conf.d/hosts/icinga_host.conf(38):
elb.discovery-premium += { "ec2-52-91-4-68.compute-1.amazonaws.com" =
1 }

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^




-- 
---
Michael Martinez
http://www.michael--martinez.com


More information about the icinga-users mailing list