Page 1 of 2

automatic report generation

Posted: Tue Mar 22, 2016 10:46 am
by asardouk
Hi,

I want to know if there is a way to generate reports for every host with specific service graphs automatically by creating config file somewhere ?

I want also to know if there a way to use my bandwidth scripts to generate bandwidth usage report ? is there a special format to get it to work ?

My script check routers via snmp and send perfdata in this format :

inUsage=66.08%;85;95;0;100 outUsage=35.70%;85;95;0;100 inBandwidth=132.162696Mb/s;170.00;190.00;0;200.00 outBandwidth=71.404228Mb/s;170.00;190.00;0;200.00

Re: automatic report generation

Posted: Tue Mar 22, 2016 2:03 pm
by scottwilkerson
Are you looking for the reports to be emailed?

if so there isn't an automated mechanism. However most of the reports built into Nagios XI are built on the fly and can be passed arguments to specify the host you want.

What specific report are you looking for, maybe we can show how the URL for the report can be built

Re: automatic report generation

Posted: Wed Mar 23, 2016 4:07 am
by asardouk
With availability report, i can generate report for a hostgroup A and to display all service performance graphs.
How can i generate the same report with specific service graph ?

my second question is about the Bandwidth Usage report. how can i adapt my script so it can generate correct data to build this kind of report ?

Re: automatic report generation

Posted: Wed Mar 23, 2016 1:27 pm
by tgriep
Are you looking to create an Availability report with only one service on it?
If so, create a service group with only one service in it and run the report using only that group, also check this box (Display service performance graphs) on the report to get the graph to be displayed in the report.

Take a look at this link for the plugin guidelines. It describes how the performance data needs to be formatted.
https://nagios-plugins.org/doc/guidelines.html#AEN200

Re: automatic report generation

Posted: Thu Mar 24, 2016 3:52 am
by asardouk
tgriep wrote:Are you looking to create an Availability report with only one service on it?
If so, create a service group with only one service in it and run the report using only that group, also check this box (Display service performance graphs) on the report to get the graph to be displayed in the report.

Take a look at this link for the plugin guidelines. It describes how the performance data needs to be formatted.
https://nagios-plugins.org/doc/guidelines.html#AEN200
Well, I have per example "Service A" that i use for "Hostgroup A". I don't have a service for every host. So i cannot create a service group with this service. My goal is to generate a report for "hostgroup A" with specific services ( not all).

For the performance data please check my first message. I think that my script send the right format. I need to know how to make "Bandwidth Usage report" create report for my bandwidth service ?

Re: automatic report generation

Posted: Thu Mar 24, 2016 4:45 pm
by tgriep
There isn't a way to select a hostgroup for the Availability report and only show some of the services. It will show all of the services when it is ran.
For the performance data graph, can you go in to Service Details for that check, click on the Advanced Tab, screen capture it and post it here.
Is that check generating a performance data graph at all?

Re: automatic report generation

Posted: Mon Apr 04, 2016 3:07 am
by asardouk
I have graph for my service. check pictures bellow :
2016-04-04%2009_57_28-Nagios%20XI.png
2016-04-04%2009_57_16-Nagios%20XI.png
I used nagios xi Configuration Wizard: Network Switch / Router and it allows to generate this kind of report :
2016-04-04 10_02_38-Nagios XI - Reports.png
How can i do the same with my script ?

Re: automatic report generation

Posted: Mon Apr 04, 2016 10:18 am
by bwallace
Sorry, but running a custom report based on a custom plugin is not possible/supported.

Re: automatic report generation

Posted: Tue Apr 05, 2016 4:11 am
by asardouk
Thanks.

Re: automatic report generation

Posted: Tue Apr 05, 2016 9:07 am
by bwallace
Sure, were there any other questions, or may we close this thread?