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!

MyAverages 2.1

Discussion in 'General Discussion' started by beehave, Sep 30, 2006.

  1. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    MyAverages 2.1

    http://www.systemabuse.com/scripts/myaverages.txt


    Script shows averages of server load and server uptime( NOT uptime percentages ).

    Server Load:
    Script displays todays average, daily average, monthly average and yearly average.

    Server Uptime:
    Script displays current uptime and average uptime.

    Average uptime is determend by what the uptime was each time server was rebooted.

    Install:
    Copy script to it's own folder. Name it what you like. "ma" works for me. Be sure to set the pa variable to the path script is located. Change permissions to 755.
    You must use the "-i" switch the first time calling the script. No switch thereafter.

    Cron Job:
    * * * * * <Path to script>/<Script name> -i

    Note: Be sure to use -i switch in cronjob.


    Script is still in Beta:
    As I just finished script today, I have not had time to see if the daily.... averages really work. They should work, but as this is only my 4th script who knows. I will update tomorrow.


    Input:
    I am looking for ideas on what to add to the script. Any other averages you think might be cool to have.
    I am already working on having it email a nightly report.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    Found a bug when uptime was less than one hour. Fixed in version 2.2...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    Fixed more bugs in 2.3
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    166
    This is what the readout looks like:

    In version 3.+ the email report will breakdown each month and year... I hope...:confused:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Excellent work...

    How about an hourly average option.
     

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