Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

LoadAve 1.0

Discussion in 'General Discussion' started by beehave, Oct 5, 2006.

  1. beehave

    beehave Well-Known Member

    Jun 26, 2005
    Likes Received:
    Trophy Points:
    LoadAve 1.0 now available!

    What script does:
    Script loads server time, date load every minute into txt databases.

    When main script is called you have the option of running minutely(Yes, this is a word), hourly, daily , monthly or yearly load reports.

    The minute reports are the 15 minute averages.
    The hour reports is the average load for the past hour taken from all minutely reports.
    The daily reports is the average load from the hour reports for that day
    and so on....

    The sweet thing about this script is that it displays the reports in bar graphs!

    For some reason, the example shows a space in the longer lines. those are there in the actual report.

    Each time load goes over a whole point it resets back to the left. See Oct 05, 2006 02. This is the hour backup is running.

    I think that it will be usefull for keeping track of server loads. This can be done by logging the ssh session when running script. And saving session for each day or whatever.

    It is also pretty cool to watch when you have alot of data.

    There will be updates to this script but it is important to get this out now so you can get the data started.

    To install:

    Be sure to let cron run the input file before you run the main script!!

    There are two files:

    They must be placed in their own folder! You can name them what you like without the .txt. Set permissions to 755. Be sure to set the path veriable in both files.

    The input file has to be called by cron:
    * * * * * /path/to/script/input

    Please let me know what you think!
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 beehave, Oct 5, 2006
    Last edited: Oct 5, 2006

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice