root 19343 9380 0 12:51 pts/0 00:00:00 grep ido2 Florian Klünder IT Officer
NOVALED GmbH Tatzberg 49 01307 Dresden Germany phone +49 351 796 5816 fax +49 351 796 5829 e-mail [email protected] web http://www.novaled.com May happiness and prosperity be with you throughout the New Year 2015! Be invited to view our e-card here: Novaled GmbH, Registered Office: 01307 Dresden, Companies Register: Amtsgericht Dresden, HRB 32931, Board of Directors: Gerd Guenther; JinWook Lee, PhD; Chairwoman of the Supervisory Board: BongOk Kim, PhD ---------------------------------------------------------------------------- -------------- Disclaimer This e-mail is from Novaled GmbH and may contain information that is confidential or privileged. If you are not the intended recipient, do not read, copy or distribute the e-mail or any attachments. Instead, please notify the sender and delete the e-mail and any attachments. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, lost, destroyed, incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. -----Ursprüngliche Nachricht----- Von: icinga-users [mailto:[email protected]] Im Auftrag von Dustin Funk Gesendet: Montag, 9. Februar 2015 11:47 An: Icinga User's Corner Betreff: Re: [icinga-users] Icinga2 dependency structure (network topology) Am 09.02.2015 um 07:56 schrieb Michael Friedrich: > Am Montag, 9. Februar 2015 schrieb Dustin Funk : > Am 08.02.2015 um 21:15 schrieb Michael Friedrich: > > Am Sonntag, 8. Februar 2015 schrieb Dustin Funk : > > > > Hi, > > > > > > can i write the following dependency definitions in a shorter way? > > > > > > object Host "d-switch-1" { > > import "generic-host" > > address = "10.42.49.1" > > vars.parent = "host-remote" > > } > > > > object Host "d-switch-2" { > > import "generic-host" > > address = "10.42.49.2" > > vars.parent = "d-switch-1" > > } > > > > object Host "d-switch-3" { > > import "generic-host" > > address = "10.42.49.3" > > vars.parent = "d-switch-2" > > } > > > > apply Dependency "switche" to Host { > > # parent_host_name = "$vars.parent$" > > parent_host_name = "d-switch-1" > > assign where host.vars.parent == "d-switch-1" > > } > > > > > > Using 2.2.x try > > Sorry, 2.2.4. > > > > > parent_host_name = host.vars.parent > > I try the following lines: > > > Why don't you use my exact proposal? > because it also outputs error(s) apply Dependency "switche" to Host { parent_host_name = host.vars.parent assign where host.vars.parent } critical/config: Config error: Invalid value for attribute: Object 'switche' (Type: 'Dependency') at /etc/icinga2/conf.d/switche/passive-technik.conf:22 -> critical/config: 1 errors, 0 warnings. > > > apply Dependency "switche" to Host { > parent_host_name = "$host.vars.parent$" > # parent_host_name = "d-switch-1" > assign where host.vars.parent > } > > The log tell me that the assign is ok (3 times) but > > critical/config: > Config error: Invalid value for attribute: Object 'switche' (Type: > 'Dependency') at /etc/icinga2/conf.d/switche/passive-technik.conf:22 ->$ > critical/config: > Config error: Invalid value for attribute: Object 'switche' (Type: > 'Dependency') at /etc/icinga2/conf.d/switche/passive-technik.conf:22 ->$ > critical/config: > Config error: Invalid value for attribute: Object 'switche' (Type: > 'Dependency') at /etc/icinga2/conf.d/switche/passive-technik.conf:22 ->$ > critical/config: 3 errors, 0 warnings. > > Cheers > nuts > > > > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users > _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
