[mrtg] Re: 95th percentile?

Henry Steinhauer H1STEINH at hewitt.com
Thu Mar 16 01:28:18 MET 2000


--
Ok -    Here is some NT style code I slapped together.

It appears to work for me.

BUT - I need to clean it up to toss out the older data so the 'archive'
files do not comsume too much space.
That will come later.  :-)

Here you go.

One caution - Do not die laughing at the code.

I learned Perl by hacking other peoples code and I know there must be a
better way of doing things.

I'm open to new ways.

What I did;

the .pl files are the versions of mrtg95 for the day, week or (default)
month versions of the code.

It reads the mrtg_archive.cnf file to determine the log files to read.
That way if I want different groupings, I can create different sets of .cnf
files to use.

The mrtg_archive.pl file creates the archive and does not care about dups.
The *95.pl files read the archive, take care of the dups, and report on the
various levels of service.

I have it showing the 95th at the first, 50th, 75th, 85th, 90th, 99th

I also print out the number of samples that make up the observation.  That
way if something happened to the mrtg machine and the number of samples are
way low, then I know that I need to toss out that day / week etc.

I found that using the week it allows me to have more sample points (ie 52
per year) rather than 12 month samples.

Any suggestions would be welcome.

Thanks for your help.

Henry Steinhauer - h1steinh at hewitt.com   -  USA  847-771-4153


(See attached file: mrtg95_week.pl)(See attached file: 95_week.bat)(See
attached file: f95th.txt)(See attached file: mrtg_archive.cnf)(See attached
file: mrtg_archive.pl)(See attached file: mrtg95.pl)(See attached file:
mrtg95_day.pl)(See attached file: 95_day.bat)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrtg95_week.pl
Type: application/octet-stream
Size: 3165 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 95_week.bat
Type: application/octet-stream
Size: 60 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f95th.txt
Type: application/octet-stream
Size: 170254 bytes
Desc: Text - character set unknown
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrtg_archive.cnf
Type: application/octet-stream
Size: 48445 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrtg_archive.pl
Type: application/octet-stream
Size: 1111 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrtg95.pl
Type: application/octet-stream
Size: 2914 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0005.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mrtg95_day.pl
Type: application/octet-stream
Size: 3302 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0006.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 95_day.bat
Type: application/octet-stream
Size: 58 bytes
Desc: not available
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/20000315/08ed9a00/attachment-0007.obj 


More information about the mrtg mailing list