Xymon Mailing List Archive search

Hobbit Graphs by cron

8 messages in this thread

list Paul Ward · Thu, 25 Jun 2009 15:03:41 +1200 ·
Hi all,

I want to generate some hobbit / xymon graphs every day. I have been
trying to get the following url to work but it keeps failing.

Please can some one tell me (I am not a web master) how to get an
image generated such as image01.jpg.

http://www.docum.org/foswiki/bin/view/Xymon/DebugGraphs

I created a file in the cgi directory, add the config and my url.
made it executable
and ran it using the command but I get.

bbcmd hobbitgraph2.cgi > /tmp/graph.out
2009-06-25 14:44:25 Using default environment file
/usr/libexec/hobbit/server/etc/hobbitserver.cfg


Thanks
list Stef Coene · Thu, 25 Jun 2009 07:08:43 +0200 ·
quoted from Paul Ward
On Thursday 25 June 2009, Paul Ward wrote:
Hi all,

I want to generate some hobbit / xymon graphs every day. I have been
trying to get the following url to work but it keeps failing.

Please can some one tell me (I am not a web master) how to get an
image generated such as image01.jpg.

http://www.docum.org/foswiki/bin/view/Xymon/DebugGraphs

I created a file in the cgi directory, add the config and my url.
made it executable
and ran it using the command but I get.
You don't have to create a file in the cgi directory.  So, what exactly do you 
want to do and what have you tried ?


Stef
list Paul Ward · Thu, 25 Jun 2009 22:27:49 +1200 ·
I want to be able to create a history of cpu usage.
Everyday I want a cron job or some oher method to generate a graph
image and save it to disk.

These graphs can be used to track the history of the server over a
longer time than 48hours.

I thought the attached url explains a method that can generate the
graphs for me.

2009/6/25 Stef Coene <user-dbffe946c0f4@xymon.invalid>:
quoted from Paul Ward
On Thursday 25 June 2009, Paul Ward wrote:
Hi all,

I want to generate some hobbit / xymon graphs every day. I have been
trying to get the following url to work but it keeps failing.

Please can some one tell me (I am not a web master) how to get an
image generated such as image01.jpg.

http://www.docum.org/foswiki/bin/view/Xymon/DebugGraphs

I created a file in the cgi directory, add the config and my url.
made it executable
and ran it using the command but I get.
You don't have to create a file in the cgi directory.  So, what exactly do you
want to do and what have you tried ?


Stef

-- 

email: user-0f18dc2f935b@xymon.invalid
website: http://www.pward.co.uk
MSN: user-a51fe8e4fa06@xymon.invalid
Skype: paul.n.ward
list Stef Coene · Thu, 25 Jun 2009 16:23:38 +0200 ·
quoted from Paul Ward
On Thursday 25 June 2009, Paul Ward wrote:
I want to be able to create a history of cpu usage.
Everyday I want a cron job or some oher method to generate a graph
image and save it to disk.

These graphs can be used to track the history of the server over a
longer time than 48hours.

I thought the attached url explains a method that can generate the
graphs for me.
If you right click on a graph and select the link (it depends on the browser 
you use), you can use wget to save the graphs daily.
On the other hand, why ?  There are 4 graphs dispayed and you can zoom in on 
the graphs if you want more detail.


Stef
list Josh Luthman · Thu, 25 Jun 2009 10:29:50 -0400 ·
All the data is stored every few minutes.  If you want to see it from a
certain time period, you just zoom in.  Does that not work for what you
need?

If and when you zoom in and find the graph for the time period you want,
using Firefox you just right click on the background, go to View Page Info
and click Media at the top.  You'll find the image in the list here.  Note
right-clicking the image will make it zoom out.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle
quoted from Stef Coene


On Thu, Jun 25, 2009 at 10:23 AM, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Thursday 25 June 2009, Paul Ward wrote:
I want to be able to create a history of cpu usage.
Everyday I want a cron job or some oher method to generate a graph
image and save it to disk.

These graphs can be used to track the history of the server over a
longer time than 48hours.

I thought the attached url explains a method that can generate the
graphs for me.
If you right click on a graph and select the link (it depends on the
browser
you use), you can use wget to save the graphs daily.
On the other hand, why ?  There are 4 graphs dispayed and you can zoom in
on
the graphs if you want more detail.


Stef

list Stef Coene · Thu, 25 Jun 2009 16:52:01 +0200 ·
quoted from Josh Luthman
On Thursday 25 June 2009, Josh Luthman wrote:
All the data is stored every few minutes.  If you want to see it from a
certain time period, you just zoom in.  Does that not work for what you
need?

If and when you zoom in and find the graph for the time period you want,
using Firefox you just right click on the background, go to View Page Info
and click Media at the top.  You'll find the image in the list here.  Note
right-clicking the image will make it zoom out.
I have script that increses the data points from 576 to 5760 so you have more 
datapoints the rrd file and you can zoom more in detail.  The rrd files are 
bigger in size, but disk space is not so expensive.


Stef
list Paul Ward · Fri, 26 Jun 2009 10:21:55 +1200 ·
If I am asked to show the cpu usage for 25th feb 2009 hobbit can not do it.

I need to have an automated method of saving the images, as I do not
wish to right click and save over 50 images every day, for CPU alone.

this must be an automated process, then I get use perl to generate
reports with this data.

2009/6/26 Stef Coene <user-dbffe946c0f4@xymon.invalid>:
quoted from Josh Luthman
On Thursday 25 June 2009, Josh Luthman wrote:
All the data is stored every few minutes.  If you want to see it from a
certain time period, you just zoom in.  Does that not work for what you
need?

If and when you zoom in and find the graph for the time period you want,
using Firefox you just right click on the background, go to View Page Info
and click Media at the top.  You'll find the image in the list here.  Note
right-clicking the image will make it zoom out.
I have script that increses the data points from 576 to 5760 so you have more
datapoints the rrd file and you can zoom more in detail.  The rrd files are
bigger in size, but disk space is not so expensive.


Stef

-- 

email: user-0f18dc2f935b@xymon.invalid
website: http://www.pward.co.uk
MSN: user-a51fe8e4fa06@xymon.invalid
Skype: paul.n.ward
list Buchan Milne · Fri, 26 Jun 2009 10:27:23 +0200 ·
quoted from Paul Ward
On Friday 26 June 2009 00:21:55 Paul Ward wrote:
If I am asked to show the cpu usage for 25th feb 2009 hobbit can not do it.
Why not? Granted, the data will be averaged out and you won't be able to go more than 2 year back (unless you use Stef's script), but the "Metrics Report" can do this.

E.g., by choosing the relevant details, I get a URL like this:
http://hobbit/hobbit-cgi/hobbit-hostgraphs.sh?start-mon=2&start-day=25&start-
yr=2009&end-mon=2&end-day=26&end-
yr=2009&hostname=$HOST&testname=la1&DoReport=Generate+Report

, and you can also do it by zooming in to the graph on the cpu page that covers that time frame.
quoted from Paul Ward
I need to have an automated method of saving the images, as I do not
wish to right click and save over 50 images every day, for CPU alone.
wget 'http://hobbit/hobbit-
cgi/hobbitgraph.sh?host=$HOST&service=la&graph_width=576&graph_height=120&nostale&color=green&graph=hourly' -O $HOST-`date +%Y%m%d`.png
quoted from Paul Ward

?
this must be an automated process, then I get use perl to generate
reports with this data.
You could of course 'use RRDs;' instead, to access the RRD data directly, instead of post-processing data that has been interpreted to an image.

Regards,
Buchan