How customize Availability Report

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
Daloa
Posts: 3
Joined: Fri Jun 12, 2015 8:37 am

How customize Availability Report

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How customize Availability Report

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Daloa
Posts: 3
Joined: Fri Jun 12, 2015 8:37 am

Re: How customize Availability Report

Post by Daloa »

Thanks a lot abrist for your reply.
Regards,
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How customize Availability Report

Post 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!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked