Hobbit Graphs by cron
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
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
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 <stef.coene at docum.org>:
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
--
email: pnward at googlemail.com website: http://www.pward.co.uk MSN: pob2000is at hotmail.com Skype: paul.n.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
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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"When you have eliminated the impossible, that which remains, however improbable, must be the truth." --- Sir Arthur Conan Doyle
On Thu, Jun 25, 2009 at 10:23 AM, Stef Coene <stef.coene at docum.org> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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 <stef.coene at docum.org>:
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
--
email: pnward at googlemail.com website: http://www.pward.co.uk MSN: pob2000is at hotmail.com Skype: paul.n.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.
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
?
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
participants (4)
-
bgmilne@staff.telkomsa.net
-
josh@imaginenetworksllc.com
-
pnward@googlemail.com
-
stef.coene@docum.org