我正在用Jaspersoft的iReport和icinga的数据创建一份监控报告。
在ireport中,我必须输入查询以获取所需的数据。现在,我想从该服务中获取(受监控对象的)名称和相应的可用性。为此,icinga提供了一个
function
它将object_id、开始日期和结束日期作为参数。例如:
select icinga_availability(203, '2017-09-01 00:00:00','2017-09-30 23:59:59'), name1 from icinga_objects where object_id = '203';