Page 1 of 1
Export nagios alert history
Posted: Tue Aug 25, 2015 1:09 am
by sdbhabal
Hello Experts,
Is there any way to export Nagios Core Alerts History in file?
Regards
sdbhabal.
Re: Export nagios alert history
Posted: Tue Aug 25, 2015 1:31 am
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.
Re: Export nagios alert history
Posted: Tue Aug 25, 2015 1:46 am
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.
Re: Export nagios alert history
Posted: Tue Aug 25, 2015 12:23 pm
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.