Export nagios alert history

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sdbhabal
Posts: 27
Joined: Fri Nov 25, 2011 2:31 am

Export nagios alert history

Post by sdbhabal »

Hello Experts,

Is there any way to export Nagios Core Alerts History in file?

Regards
sdbhabal.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Export nagios alert history

Post by Box293 »

In Core 4.0.7 the JSON CGI's were added.

https://labs.nagios.com/2014/06/19/expl ... -7-part-1/

You could retrieve a JSON object with all the alerts from a specific period. Being a JSON you can then use the data in a script.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sdbhabal
Posts: 27
Joined: Fri Nov 25, 2011 2:31 am

Re: Export nagios alert history

Post by sdbhabal »

Box293,

Thanks for your prompt reply.
Actually I am a system guy, unfortunately I dont know much more about JSON.
Can I get a simple UI where I can simply export the Nagios Alerts Logs into the file?

Regards
sdbhabal.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Export nagios alert history

Post by tmcdonald »

The JSON output could be saved into a file. What format would you be able to work with? JSON is very easy to read, and it can be converted to many other formats.
Former Nagios employee
Locked