Page 1 of 6
Reporting
Posted: Thu Jun 20, 2013 3:13 am
by MSPk
Hi,
I'm trying to export the historical data for the parameters monitored on a server, however when we checked on nagios there is an option to export the graphs but not the actual data. The reports also show if the service is up or not but not the actual stats against the timelines. Is there an option to get the stats of the parameters(like cpu, memory) for a monitored host in an data file rather than on graphs.
Also, I see that the filter function in nagios will be appled for only 1 graph and when we click on another graph (even for the same host) we have to apply the filter again. Do we have an option to down all the graphs available for a host in one go for the set filter rather than downloading each one of them individually?
Re: Reporting
Posted: Thu Jun 20, 2013 9:38 am
by abrist
MSPk wrote:Is there an option to get the stats of the parameters(like cpu, memory) for a monitored host in an data file rather than on graphs.
The values stored in RRDs are averages over certain periods of time. Do not expect them to be the exact value at the time recorded. This is done to save space as performance data can fill hard drives quickly. You can use
rrdfetch to pull specific values from the rrds for certain times and dump them to stdout, just remember that these values are
averaged.
MSPk wrote:Do we have an option to down all the graphs available for a host in one go for the set filter rather than downloading each one of them individually?
Yep. Go to --> XI --> Home --> Performance Graphs --> Host Graphs.
Re: Reporting
Posted: Thu Jun 20, 2013 11:28 am
by MSPk
The values stored in RRDs are averages over certain periods of time. Do not expect them to be the exact value at the time recorded. This is done to save space as performance data can fill hard drives quickly. You can use rrdfetch to pull specific values from the rrds for certain times and dump them to stdout, just remember that these values are averaged.
Is there any specific tool that we can download and use?
Yep. Go to --> XI --> Home --> Performance Graphs --> Host Graphs.
I dont see an option to download all these graphs...!!!
Re: Reporting
Posted: Thu Jun 20, 2013 1:05 pm
by abrist
You would use the scheduled reporting features to turn the page into a pdf. The scheduled reporting feature can turn any XI page into a pdf. It is the clock/timer icon located in the upper right hand corner of the XI interface on the blue navigation bar.
Re: Reporting
Posted: Fri Jun 21, 2013 1:24 am
by MSPk
Code: Select all
ERROR: Failed to render URL 'http://localhost/nagiosxi/perfgraphs/index.php?&host=localhost&service=Current Load&source=1&view=2&start=&end=&startdate=&enddate=&mode=2&service_id=129&username=nagiosadmin&ticket=o6u0qqdo' as '/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-59ccfh-page.pdf'
This is the error we have in the email sent, when a scheduled report was created and sent as an email.
Is there an option to download the PDF on the console it self rather than asking it to send an email
Re: Reporting
Posted: Fri Jun 21, 2013 10:29 am
by abrist
Looks like there is a space in the url that should have been html encoded. Can you try another service without a space in the description for troubleshooting's sake?
Re: Reporting
Posted: Fri Jun 21, 2013 11:56 am
by MSPk
It looks to be the same....!!!
ERROR: Failed to render URL '
http://localhost/nagiosxi/perfgraphs/?& ... t=o6u0qqdo' as '/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-3no7tt-page.pdf'
Re: Reporting
Posted: Fri Jun 21, 2013 3:10 pm
by scottwilkerson
Can you verify what version of XI you are running as I believe there were some scheduled reporting bugs that were fixed recently.
Also, can you return the output of the following commands
Code: Select all
ls -ld /usr/local/nagiosxi/tmp
ls -ld /usr/local/nagiosxi
Re: Reporting
Posted: Sun Jun 23, 2013 8:55 pm
by MSPk
Version on Nagios - Nagios XI 2012R1.8
Code: Select all
[root@localhost ~]# ls -ld /usr/local/nagiosxi/tmp
drwsrwsr-x 2 apache nagios 4096 May 27 02:04 /usr/local/nagiosxi/tmp
[root@localhost ~]# ls -ld /usr/local/nagiosxi
drwxr-xr-x 10 nagios nagios 4096 May 10 06:14 /usr/local/nagiosxi
Re: Reporting
Posted: Mon Jun 24, 2013 11:05 am
by abrist