What exactly are you looking for?<br><br><div class="gmail_quote">On Wed, May 27, 2009 at 10:01 AM, Ayotunde Itayemi <span dir="ltr"><<a href="mailto:Ayotunde.Itayemi@zain.com">Ayotunde.Itayemi@zain.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
Thanks for the response. I will look into the RRDTool command line<br>
option.<br>
Yes, I am using NDOUTILS. I have actually examined a few of the tables<br>
and it looks like the base values that can be manipulated are in there<br>
(somewhere :-).<br>
I have looked at the NAGIOS email reporter and it's not what I want. In<br>
fact, I have implemented the same thing it does myself - i.e., query the<br>
standard NAGIOS cgis. The issue with this output is that what you get<br>
from the CGIs are not the performance data values, but the percentage of<br>
the time a particular measurement is over the warning/critical<br>
threshold.<br>
By the way, are there comprehensive entity-relationship type diagrams<br>
for the tables making up the NDOUTILS tables anywhere?<br>
<br>
Thanks.<br>
"This mail is from a Gimper"<br>
<br>
-----Original Message-----<br>
From: Marc Powell [mailto:<a href="mailto:marc@ena.com">marc@ena.com</a>]<br>
Sent: Tuesday, May 26, 2009 10:04 PM<br>
To: Nagios Users Mailinglist<br>
Subject: Re: [Nagios-users] Custom report showing weekly Average/Max<br>
valuesfor CPU/RAM/SWAP/Availability<br>
<br>
On May 26, 2009, at 3:25 PM, Ayotunde Itayemi wrote:<br>
<br>
> Hi All,<br>
> I am currently monitoring several parameters on my clients (CPU,<br>
> RAM, Disk, availability, SWAP, etc)<br>
> I am also collecting performance data from the plug-ins which is<br>
> being used by PNP4nagios to create graphs.<br>
><br>
> I have a request from "management" for a single report (weekly on<br>
> Monday mornings at 9am) which shows the average and maximum values<br>
> of each of these parameters (at least CPU, RAM, SWAP)<br>
<br>
I don't use PNP but I expect this will be work for you unless it has<br>
built-in reporting for this (I don't believe it does). I would<br>
encourage you to learn more about how RRDTool works by reading the<br>
Documentation and Tutorials at<br>
<a href="http://oss.oetiker.ch/rrdtool/index.en.html" target="_blank">http://oss.oetiker.ch/rrdtool/index.en.html</a><br>
. That will give you a good basis for the concepts you will need to do<br>
do this. To obtain the textual values for these parameters, you'll<br>
need to use the command-line rrdtool program to fetch the values from<br>
the rrd files directly. rrdtool can fetch the AVERAGE value at each<br>
stored point during the week and you'll need to add those up and<br>
divide by the number of values to determine the single average value<br>
(man rrdfetch). You could also pick the MAX value from that output or<br>
maybe PNP also includes a MAX rra you can fetch.<br>
<br>
> and Availability using a single row per server. The duration for the<br>
> report is the previous one week (Monday 00:00 to Sunday 11:59PM)<br>
<br>
Nagios Email Reporter might be the ticket here.<br>
<br>
><br>
> I think it should be possible if one knows the right tables to query<br>
> and possibly how to string the right query together, but with very<br>
> little idea of the tables, their relationships (not to mention that<br>
> I am not a DBA) it's a very tall order for me.<br>
<br>
There are no databases or tables to query unless you're using NDOUtils<br>
and even then, getting this information wouldn't be trivial, IMHO.<br>
<br>
--<br>
Marc<br>
<br>
<br>
------------------------------------------------------------------------<br>
------<br>
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT<br>
is a gathering of tech-side developers & brand creativity professionals.<br>
Meet<br>
the minds behind Google Creative Lab, Visual Complexity, Processing, &<br>
iPhoneDevCamp as they present alongside digital heavyweights like<br>
Barbarian<br>
Group, R/GA, & Big Spaceship. <a href="http://p.sf.net/sfu/creativitycat-com" target="_blank">http://p.sf.net/sfu/creativitycat-com</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when<br>
reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
------------------------------------------------------------------------------<br>
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT<br>
is a gathering of tech-side developers & brand creativity professionals. Meet<br>
the minds behind Google Creative Lab, Visual Complexity, Processing, &<br>
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian<br>
Group, R/GA, & Big Spaceship. <a href="http://p.sf.net/sfu/creativitycat-com" target="_blank">http://p.sf.net/sfu/creativitycat-com</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br><br clear="all"><br>-- <br>Alex Dehaini<br>Developer<br>Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><br>