The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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!
     
  2. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Found a bug when uptime was less than one hour. Fixed in version 2.2...
     
  3. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    Fixed more bugs in 2.3
     
  4. beehave

    beehave Well-Known Member

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

    In version 3.+ the email report will breakdown each month and year... I hope...:confused:
     
  5. jayh38

    jayh38 Well-Known Member

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

    How about an hourly average option.
     

Share This Page