Hi,

we are testing the new API and I have some questions, maybe someone can
help me:

Question 1:
- If I created one host in /etc/icinga2/zones.d/zoneX/* and later I do one
update via API, then the file from /etc/icinga2/zones.d/zoneX/* ist
automatically updated with the file from
/var/lib/icinga2/api/packages/_api/*

- But, If I build one new host via API, then the file is not sync to the
/etc/icinga2/zones.d/ZoneX/* folder (and the file ist there missing)

Is possible in some way to have both folders/files updated? How should we
do for update manually one object that was created via API?

Question 2:

If I created one host via API with the Attribute zone (for example Zone_A),
then the host is created correctly for this Zone (for example the satellite
of this Zone do the checks), but the file ist created under:

/var/lib/icinga2/api/packages/_api/icinga-dev-01-1449060045-1/conf.d

and not under

/var/lib/icinga2/api/packages/_api/icinga-dev-01-1449060045-1/zones
.d/Zone_A

This happens only if I create the host via API, if I create the host via
console under /etc/icinga2/zones.d/Zone_A, then the file ist sync to
/var/lib/icinga2/api/packages/_api/icinga-dev-01-1449060045-1/zones.d/Zone_A/

PS: /etc/icinga2/conf.d is not more in the icinga2.conf enabled

Has someone one Idea?

Regards,
Christian


Christian Moreno Moreno
System Engineer Offers

idealo internet GmbHRitterstraße 11
10969 Berlin, DeutschlandTel.: +49 (0)30 40 30 10 33Fax: +49 (0)30 221 94 33
- 21E-Mail: christian.moreno@idealo.deGeschäftsführer:Dr. Albrecht von
Sonntag, Dr. Philipp-Christopher PeitschHRB 76749 – Amtsgericht
Berlin-Charlottenburg[image: idealo Logo] <http://www.idealo.de/>
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to