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!
Example:
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:
http://www.systemabuse.com/scripts/input.txt
http://www.systemabuse.com/scripts/LoadAve.txt
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!
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!
Example:
For some reason, the example shows a space in the longer lines. those are there in the actual report.[email protected] [/stuff/LoadAve]# ma
LoadAve 1.0
The following reports are available!
-Average load per minute available.
-Average load per hour available.
-Average load per day available.
No monthly report yet available.
No yearly report yet available.
Shall I run a report for you? (y/n): y
Okay, which report? ( m = minutely; h = hourly; d = daily; ): h
Oct 04, 2006 00 |...........................0.27
Oct 04, 2006 01 |........................0.24
Oct 04, 2006 02 |..................................................................0.66
Oct 04, 2006 03 |....................................................................................0.84
Oct 04, 2006 04 |...............................................................................0.79
Oct 04, 2006 05 |...................................0.35
Oct 04, 2006 06 |..........................0.26
Oct 04, 2006 07 |........................0.24
Oct 04, 2006 08 |....................................0.36
Oct 04, 2006 09 |............................................0.44
Oct 04, 2006 10 |...........................................0.43
Oct 04, 2006 11 |.................................0.33
Oct 04, 2006 12 |.............................................0.45
Oct 04, 2006 13 |............................................0.44
Oct 04, 2006 14 |...................................................0.51
Oct 04, 2006 15 |............................................0.44
Oct 04, 2006 16 |....................................0.36
Oct 04, 2006 17 |....................................................0.52
Oct 04, 2006 18 |...........................................0.43
Oct 04, 2006 19 |..............................................................0.62
Oct 04, 2006 20 |....................................................0.52
Oct 04, 2006 21 |.................................0.33
Oct 04, 2006 22 |..............................................0.46
Oct 04, 2006 23 |................................................0.48
Oct 05, 2006 00 |............................................0.44
Oct 05, 2006 01 |........................................0.40
Oct 05, 2006 02 |........2.06
Oct 05, 2006 03 |.......................................................................0.71
Oct 05, 2006 04 |.........................................................0.57
Oct 05, 2006 05 |.......................0.23
Oct 05, 2006 06 |.....................0.21
Oct 05, 2006 07 |..................0.18
Oct 05, 2006 08 |..................0.18
Oct 05, 2006 09 |................................................0.48
[email protected] [/stuff/LoadAve]#
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:
http://www.systemabuse.com/scripts/input.txt
http://www.systemabuse.com/scripts/LoadAve.txt
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!
Last edited: