[icinga-users] Icinga2 API query all host service last value

Gunnar Beutner Gunnar.Beutner at netways.de
Sun Nov 22 19:26:30 CET 2015


Just try https://localhost:5665/v1/objects/services - i.e. without any filters. For performance reasons you’ll also want to specify the attributes you’re interested in (using the ‚attrs‘ parameter).


Kind regards
Gunnar Beutner




On 22/11/15 18:23, "icinga-users on behalf of Tal Bar-Or" <icinga-users-bounces at lists.icinga.org on behalf of tbaror at gmail.com> wrote:

>Hello All,
>
>
>I need help with query building ,for getting all hosts services last value , for example
>
>instead for curl -k -s -u root:icinga 'https://localhost:5665/v1/objects/services?service=machinename!ping4'
>
>
>kind of *
>curl -k -s -u root:icinga 'https://localhost:5665/v1/objects/services?service=*!*'
>
>
>Please advice
>
>Thanks
>
>
>--
>Tal Bar-or
>
>
>
>
>
>
>
>

-- 
Gunnar Beutner
Senior Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | Gunnar.Beutner at netways.de

** OSMC 2015 - November - netways.de/osmc **
** OSDC 2016 - April – netways.de/osdc **


More information about the icinga-users mailing list