x axis= 0 - 365 (time in days)
y axis= 0 - 100(or 1 depending on the value you're taking for utilization. It's best to convert it into %.) (percent util)

After that you'll need some way of being able to plot  y/x or Percent util over time. After that, it should be easy.



On Fri, 2002-01-04 at 01:54, Daniel Masur wrote:
> what i want to do is, parsing the "uptime" command in suse, get the
> stats
> for 1, 5 and 15 minute cpu utilisation, and draw an image.
> 
> just like the taskmanager in win windows 2000, xp, and nt.anybody did
> this
> before?
> 
> should look like this:
>                                               /
> |             ____________       /
> |            /                        \    /
> |    ___/                            \/
> |  /
> |/______________________
> uptime: 68days
> 
> 
> parsing the uptime command, isnt a problem, but how to coordinate the 3
> values in the image.
> 
> also i have the ability, to save all values in a mysql db.
> 
> anybody can help?
> 
> ps, i never worked with images in php before...
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: [EMAIL PROTECTED]

"It is the part of a good shepherd to shear his flock, not to skin it."
Latin Proverb

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to