Meng Keng Lee | 1 Jul 2004 12:05
Picon
Favicon

Re: Formula for calculating Network Utilisation

Hello Alex,

Thanks for giving a detailed explanation.

Is it possible in MRTG to do the following?
    => 70% to 90% Utilisation => Send email alert to Engineer
   => > 90% Utilisation => Send email alert to Manager

Thanks again for your help
Alex van den Bogaerdt <alex <at> ergens.op.het.net> wrote:
On Thu, Jun 24, 2004 at 11:20:41PM -0700, Meng Keng Lee wrote:

> Perhaps I could explain better if I show you my MRTG conf:

> MaxBytes[A2RT01.Fa4_0_0.load]: 12500000

That is bytes. It is also equal to 100000000 bits.

> >From the config above, I notice that the MaxBytes is 12500000 but using Getif ifSpeed is 100000000

Bytes vs. Bits.

> Just read from some Cisco docs last night, it says that the correct way
> of measure bandwidth is (ifInOctets X 8 X100) / (Number of seconds X ifSpeed).

And they are right, as long as you start counting from the moment the device
is switched on. That is ___not___ 300 seconds.

Look at the formula again and recall your math lessons:

(Continue reading)

Tim Reimers | 1 Jul 2004 14:47
Picon

Moving from MRTG to MRTG+ rrdtool?

Hi-

I've got quite a lot of switches to monitor- about 100 or so
Using just a little Dell Optiplex GX240 at this point-

I've so far been putting an instance of MRTG into /etc/crontab
after the fashion of:
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg
2-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch2.cfg
3-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch3.cfg
4-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch4.cfg
5-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch5.cfg
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg

I've heard that this does not scale well-

I'm looking for some ideas on what the most current and best method of
handling this is-
I'm not a programmer/scripter at all- I struggle a bit just getting the
configs to work, so I'm not 
going to be able to hand-write PHP or Perl to 'roll my own' system of
handling multiple cfg files
running...

what's the best current tool for doing this?

Tim Reimers
Asheville City Schools IT
tim.reimers(at)asheville(dot)k12(dot)nc(dot)us
828-255-5304x374
(Continue reading)

Bigelow, Andrea L. | 1 Jul 2004 15:37
Favicon

Re: Moving from MRTG to MRTG+ rrdtool?


> I've so far been putting an instance of MRTG into /etc/crontab
> after the fashion of:
> 0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg
> 2-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch2.cfg
> 3-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch3.cfg
> 4-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch4.cfg
> 5-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch5.cfg
> 0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg
> 
> I've heard that this does not scale well-

Tim -- 

Speaking from experience, this is a disaster to scale. I do this by
daemonizing MRTG. Once you've generated your config file, add the following
lines to the global options section, where WorkDir and all that are. 

RunAsDaemon: Yes
Interval: 5

If you use separate config files for each device (legal - this is what I
do), you'll need to add that to every file. 

Then, run the MRTG command just once, and it'll keep running itself as a
sleeping process. 

You will need to make sure these processes get started on bootup -- I made a
file under my equivalent of rc.local called mrtg.sh that just runs all the
commands. 
(Continue reading)

William Owen | 1 Jul 2004 17:47

Re: Moving from MRTG to MRTG+ rrdtool?

I take all of the common components of my MRTG config files (i.e. WorkDir,
Interval, Refresh, LogFormat...), remove them from the individual config
files and place them in one master.cfg.  I then use an Include:
/Path/To/File.cfg statement to 'include' the other configs.  You can then
setup one cron job to run the master.cfg file which updates all of the cfg
files referenced with Include: statements.

-----Original Message-----
From: Tim Reimers [mailto:tim.reimers <at> asheville.k12.nc.us] 
Sent: Thursday, July 01, 2004 7:48 AM
To: MRTG Mailing list
Subject: [mrtg] Moving from MRTG to MRTG+ rrdtool?

Hi-

I've got quite a lot of switches to monitor- about 100 or so
Using just a little Dell Optiplex GX240 at this point-

I've so far been putting an instance of MRTG into /etc/crontab
after the fashion of:
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg
2-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch2.cfg
3-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch3.cfg
4-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch4.cfg
5-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch5.cfg
0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/switch1.cfg

I've heard that this does not scale well-

I'm looking for some ideas on what the most current and best method of
(Continue reading)

Jose Luis Perez es | 1 Jul 2004 12:37
Picon

red line


 Hi to all

     I´m working with mrtg and rrdtool. In some examples i saw that there is
 a red vertical line at time 0 in the daily graph, but when i see my graphs
 this line is not seen and i don´t know why.

 thanks and sorry for my english.

--
Unsubscribe mailto:mrtg-request <at> list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Evan Platt | 1 Jul 2004 22:00

Re: red line

At 03:37 AM 7/1/2004, you wrote:

>  Hi to all
>
>      I´m working with mrtg and rrdtool. In some examples i saw that there is
>  a red vertical line at time 0 in the daily graph, but when i see my graphs
>  this line is not seen and i don´t know why.
>
>  thanks and sorry for my english.

That's the midnight line. All it does is separate the days.

Evan 

--
Unsubscribe mailto:mrtg-request <at> list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Meng Keng Lee | 2 Jul 2004 11:17
Picon
Favicon

Re: Formula for calculating Network Utilisation

Hello William,

I noticed that ThresholdMaxI passes 3 arguments: the $router variable, the threshold value broken( in the
case will be 70%), the current parameter value.  I noticed that the current parameter value is often more
than 100. In fact I noticed that the value is 26052.2781666667 or 5179.73132222222, etc. Both value are
definitely not below 100%.
How do I compute the current parameter value to be in percentage?

Regards

William Owen <William.Owen <at> ProfilesInternational.com> wrote:
When the threshold is breached, MRTG will pass information to whatever your
external script is. You could write in some intelligence where:

if ($utalization < 90 ) {
$email = 'email1 <at> company.com'
}
else {
$email = 'email2 <at> company.com'
}

-----Original Message-----
From: Meng Keng Lee [mailto:mengkenglee <at> yahoo.com] 
Sent: Thursday, July 01, 2004 5:05 AM
To: Alex van den Bogaerdt; mrtg <at> list.ee.ethz.ch
Subject: [mrtg] Re: Formula for calculating Network Utilisation

Hello Alex,

Thanks for giving a detailed explanation.
(Continue reading)

Stefano Giraldo | 2 Jul 2004 15:35
Picon

More than 9 int in aggregate traffic analysis

Hi,
I start to monitoring the aggregate traffic with MRTG using this sintax in
target:

Target[ag_gsr]: #Gi3/0:comm <at> router:::::2 + #Gi3/1:comm <at> router:::::2 +
#Gi3/2:comm <at> router:::::2 and so on...

I can put in the target only 9 interfaces at the same time... when I add the
10th and restart MRTG I got this error:

noir:/etc/init.d# ERROR: Target[ag_gsr][_IN_] ' $$target[174]{$mode}  +
$$target[175]{$mode}  +  $$target[176]{$mode}  +  $$target[177]{$mode}  +
$$target[178]{$mode}  +  $$target[179]{$mode}  +  $$target[180]{$mode}  +
$$target[181]{$mode}  +  $$target[182]{$mode}  +  $$target[183]{$mode}  +
$$target[184]{$mode}  +  $$target[185]{$mode} ' evaluated to
'1.39426666328879e+15' instead of a number
WARNING: Skipping Update of ag_gsr, inlast is not defined

Someone know why?

Thanks in advance,

        Ste.

PS I'm using MRTG 2.9.29... it's probabily with a 2.10.14 I'll no more get
the problem of "in/outlast is not defined"?

--
Unsubscribe mailto:mrtg-request <at> list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
(Continue reading)

Britt Tabor | 2 Jul 2004 15:39

Indexmaker Error Message

I get the following errors when running indexmaker. 

Use of uninitialized value in pattern match (m//) at /usr/bin/indexmaker
line 348
Use of uninitialized value in concatenation (.) or string at
/usr/bin/indexmaker line 349

I'm running redhat fedora core 1 and mrtg-2.10.5. My config file is simple
and only contains 1 host currently for testing. You can view the .cfg by
following the link to pastebin.com

http://www.pastebin.com/78968

My indexmaker line looks like this:

Indexmaker --sort=name --perhost --section=descr --show=none
/home/user/mrtgtest/test.cfg --output=/var/www/mrtg/test/index.html

Britt Tabor
I.T. Infrastructure Engineer
Jabil Global Services
727.803.3475  Voice
727.803.5306  Fax

--
Unsubscribe mailto:mrtg-request <at> list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

(Continue reading)

William Owen | 2 Jul 2004 16:24

Re: Formula for calculating Network Utilisation

The program passes the allows you to monitor the threshold on the relative
percentage value, but it passes the raw value to you ThresholdMax program.
If you are looking for the relative value on your Threshold program, you can
always calculate them using your MaxBytes value and then running the <90
logic against the results.  Alternatively, you could calculate this number
and compare.

MaxBytes: 125000

90% = 12491

EX1:
if ($utalization < 12491 ) {
    $email = 'email1 <at> company.com';
}
else {
    $email = 'email2 <at> company.com';
}

EX2:
$Percent = ($utalization \ 125000) * 10;

if ($Percent < 90 ) {
    $email = 'email1 <at> company.com';
}
else {
    $email = 'email2 <at> company.com';
}

-----Original Message-----
(Continue reading)


Gmane