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.
Download Only Active Alarms
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Download Only Active Alarms
This report doesn't exist.
The data is available in json or XML using the API
Help -> Objects Reference
And add the following to the URL which means current state is not OK/UP
The data is available in json or XML using the API
Help -> Objects Reference
Code: Select all
GET objects/hoststatus
GET objects/servicestatusCode: Select all
¤t_state=nin:0-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Download Only Active Alarms
scottwilkerson wrote:This report doesn't exist.
The data is available in json or XML using the API
Help -> Objects ReferenceAnd add the following to the URL which means current state is not OK/UPCode: Select all
GET objects/hoststatus GET objects/servicestatusCode: Select all
¤t_state=nin:0
How to implement these API.
Can you share the process/document for the same.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Download Only Active Alarms
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.
Help -> REST API Docs
These can return either XML or JSON which you can have a programmer convert into the format of your choosing.
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Download Only Active Alarms
I am unable to edit the same.
i am not getting any option for edition of API.
i am not getting any option for edition of API.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Download Only Active Alarms
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.
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.