Page 1 of 1
Download Only Active Alarms
Posted: Wed Jun 06, 2018 2:54 am
by ericssonvietnam
I want to download the report of only the active alarm in the operation window.The report should be in .csv or xlsx.
I have fetch the availability(host/Service)/State History report but it doesn't meet up my requirement.
Re: Download Only Active Alarms
Posted: Wed Jun 06, 2018 1:33 pm
by scottwilkerson
This report doesn't exist.
The data is available in json or XML using the API
Help -> Objects Reference
Code: Select all
GET objects/hoststatus
GET objects/servicestatus
And add the following to the URL which means current state is not OK/UP
Re: Download Only Active Alarms
Posted: Thu Jun 07, 2018 12:21 am
by ericssonvietnam
scottwilkerson wrote:This report doesn't exist.
The data is available in json or XML using the API
Help -> Objects Reference
Code: Select all
GET objects/hoststatus
GET objects/servicestatus
And add the following to the URL which means current state is not OK/UP
How to implement these API.
Can you share the process/document for the same.
Re: Download Only Active Alarms
Posted: Thu Jun 07, 2018 9:08 am
by scottwilkerson
It is described in XI under
Help -> REST API Docs
These can return either XML or JSON which you can have a programmer convert into the format of your choosing.
Re: Download Only Active Alarms
Posted: Tue Jun 12, 2018 7:03 am
by ericssonvietnam
I am unable to edit the same.
i am not getting any option for edition of API.
Re: Download Only Active Alarms
Posted: Tue Jun 12, 2018 2:34 pm
by scottwilkerson
You aren't editing the API on the page, you would just add that to the URL you are loading with the API.
The API is for programmatically accessing the data in Nagios XI. You would want a developer to create the report you are looking for using the data and information I gave you.