Tried accessing https://localhost:5665/v1/objects/services

* On the master: services are returned

* On the client: services are not returned
even if they have just been downloaded in client's
/var/lib/icinga2/api/zones/...

2016-01-11 13:30 GMT+01:00 Michael Friedrich <michael.friedr...@netways.de>:

>
> > On 07 Jan 2016, at 16:08, Francesco Savignago <
> francesco.savign...@develon.com> wrote:
> >
> > Hi guys.
> > I have a client setup that should receive configuration from master.
> > Client of course has "accept_config = true".
> >
> > Proper configuration seems to be synced by reading logged activity.
> Infact I can find configuration files in
> >     /var/lib/icinga2/api/zones/my-satellite/_etc/my-host.conf
> > and
> >     /var/lib/icinga2/api/zones/global-templates/_etc/satellite.conf
> >
> > I'm sure that these files are fresh because i delete them before
> starting icinga2.
> > Synced files under /var/... are nonempty and cointains host and services
> definitions. However these objects seems not to be read since
> >      icinga2 object list --type service
> > and
> >      icinga2 object list --type host
> > give empty results.
> >
> > I have no idea why. I can find log lines such as
> >       information/ApiListener: Updating configuration file:
> /var/lib/icinga2/api/zones/my-satellite//_etc/my-host.conf
> > but no lines such as
> >         "Received 'config::Update' message from 'Master'"
> > That I found googling about.
>
> Are these objects accessible via REST API?
>
> Kind regards,
> Michael
>
> >
> > Any idea will be appreciated.
> > TIA
> > _______________________________________________
> > icinga-users mailing list
> > icinga-users@lists.icinga.org
> > https://lists.icinga.org/mailman/listinfo/icinga-users
>
>
> --
> Michael Friedrich, DI (FH)
> Senior Developer
>
> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
> CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
> http://www.netways.de | michael.friedr...@netways.de
>
> ** OSDC 2016 - April - netways.de/osdc **
> ** OSBConf 2016 - September - osbconf.org **
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to