Page 1 of 1

How customize Availability Report

Posted: Tue Jun 16, 2015 5:09 am
by Daloa
Hello everybody,
We are currently using Nagios Core version 3.2.3, and we use Availability Reports.
These reports are fine, we can find hosts downtime (day, time, duration).
We received a request to custom Availability Report to get more details on Host events.
We would like see for each Shutdown event: the reason, the category of reason (network error, Hard disk failure, Fan failure, etc..).
If some action have be done to solve each issue.

Then we can have the number of each category of shutdown. And make statistics by event to know how many event happen in the month etc… as soon as possible, without manual entries.
And make some graphic to see which event we can focus on.

How can we get such custom report in Nagios Core ?
Do we need plugins?
Please, can anyone help.

Re: How customize Availability Report

Posted: Tue Jun 16, 2015 2:52 pm
by abrist
Such a report does not exist in core at the moment. You could try using Nagiso XI, as you can build custom reports, or you could attempt to leverage the json API and build your own reports (requires you to develop your own reports using ajax calls to the json cgis).
You could also create a feature request of github:
https://github.com/NagiosEnterprises/nagioscore

Re: How customize Availability Report

Posted: Wed Jun 17, 2015 9:26 am
by Daloa
Thanks a lot abrist for your reply.
Regards,

Re: How customize Availability Report

Posted: Wed Jun 17, 2015 9:56 am
by abrist
No problem, locking thread. Take a look at the json api if you get ambitious. You can play with the json query generator on core 4 systems by browsing to:
http:/<ip>/nagios/jsonquery.html
Cheers!