Awesome, thanks, that worked.
There was a bracket missing in the second query but the error message helped to 
find it :).
web/api/service_status_summary/filter[AND(HOST_NAME|=|localhost;SERVICE_NAME|=|CurrentLoad)]/columns[SERVICE_NAME|HOST_NAME|SERVICE_CURRENT_STATE]/json
(before /columns)

Last question about it:
Any way to login with the api to make some automatic remote request?


Regards,

Thomas

Am 06.07.2010 um 12:32 schrieb Jannis Moßhammmer:

> Hi,
> 
> I'm going to check the syntax on the ticket, there were some minor 
> changes in the api definition.
> 
> Hoststatus, only showing state nr, name and checkdate (Remove the column 
> field to see the complete result):
> http://localhost/icinga-web/web/api/host_status_summary/filter[BAND(HOST_NAME|=|localhost)]/columns[HOST_STATE|HOST_NAME|HOST_LAST_CHECK]/json
> 
> 
> Retrieve Servicestatus:
> http://localhost/icinga-web/web/api/service_status_summary/filter[AND(HOST_NAME|=|localhost;SERVICE_NAME|=|Current
>  
> Load)/columns[SERVICE_NAME|HOST_NAME|SERVICE_CURRENT_STATE]/json
> 
> Hope this helps - all available columns are listed in  
> %icinga-api/objects/search/data_interfaces/IcingaApiSearchIdoMysql.php.
> 
> On 06.07.2010 10:16, Thomas Seifert wrote:
>> Hey folks,
>> 
>> reading up on the great 1.0.2 release I'm wondering how to use the REST api.
>> The example from the linked ticket isn't working for me :-/.
>> 
>> Does anyone have a working example on how to retrieve, for example, the 
>> status of a host and the status of a given service on a given host?
>> 
>> 
>> Thanks in advance,
>> 
>> Thomas
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> icinga-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/icinga-users
>> 
> 
> 
> -- 
> Jannis Moßhammer
> Application Developer
> 
> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nürnberg
> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
> GF: Julian Hein | AG Nürnberg HRB18461
> 
> http://www.netways.de | [email protected]
> 
> ** NETWAYS Open Source Monitoring Conference 2010 | Nürnberg, 06. und 07. 
> Oktober 2010 | http://www.netways.de/osmc **
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/icinga-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to