Download Only Active Alarms

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Download Only Active Alarms

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Download Only Active Alarms

Post 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

Code: Select all

&current_state=nin:0
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Download Only Active Alarms

Post 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

Code: Select all

&current_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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Download Only Active Alarms

Post by ericssonvietnam »

I am unable to edit the same.

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked