Operating System - HP-UX
1753873 Members
7457 Online
108809 Solutions
New Discussion юеВ

Re: Graphs on intranet website

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

Graphs on intranet website

Experts,

I need some help in getting the following requirement met. I know there are number of tools in the market which can do this. I would like to do it thru shell scripts and some utils. ( I can't afford to buy one)

I have a file /tmp/output.sar. There are "x" number of columns for CPU usage of nodes and "y" number of lines for time , basically it is created by sar from diffrent nodes ...

e.g. # cat /tmp/output.sar
Time node1 node2 node3
10:00:00 89 34 67
10:01:00 89 34 67
10:02:00 89 34 67
10:03:00 89 34 67
10:04:00 89 34 67
...
...
11:00:00 23 34 98

I want to plot a graph "lines" and print the ouput to a jpeg format so that I can display that on my webserver. I tried some basic stuff with gnuplot, xv, blah blah .. But it looks too confusing for me.

Any quick help appreciated.

Regards,


Kaps
Nothing is impossible
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Graphs on intranet website

Shalom Kaps,

http://www.itrcstats.info

A good example, sql back end, lots of graphs. Alex Lavrov can tell you more on this, I'll poiint him to this thread.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alzhy
Honored Contributor

Re: Graphs on intranet website

And may I suggest RRDTOOL too?

Google for it on the NET and you will its web site (wherever it is hosted right now) as well as some very really good examples...

Hakuna Matata.
spex
Honored Contributor

Re: Graphs on intranet website

Hi Kaps,

Gnuplot and ImageMagick will both accomplish this from the command line.

gnuplot-4.0.0
http://hpux.connect.org.uk/hppd/hpux/Development/Tools/gnuplot-4.0.0/

ImageMagick-6.2.4
http://hpux.connect.org.uk/hppd/hpux/X11/Viewers/ImageMagick-6.2.4/

PCS
KapilRaj
Honored Contributor

Re: Graphs on intranet website

Thank you for the replies and ur time. May I request someone to walk over the whole process if he/she had done it in the recent past. I can understand this is too much but I don't think i can learn these products and use them so easily.

Kaps
Nothing is impossible
Rajeev  Shukla
Honored Contributor

Re: Graphs on intranet website

Hi Kapil,

The easiest ones to learn are Apache+PHP+GD
I have seen it very easy to learn and less time for implementation.
Install your Apache and PHP with GD library support. After which you can use image functions to create graphs etc.
Have a look at the link
http://us2.php.net/manual/en/ref.image.php
And let me know if you need further help implementing it.

Regards
Rajeev