[mrtg] Re: Round trip time between distant routers

Steven Williams Steven.Williams at computershare.com.au
Wed Sep 4 04:52:24 MEST 2002


I use a W2K server for my MRTG, so I had someone modify the pingnode perl
script to work for Windows, so I've attached this and the SNMP_session.pm
file it requires. 

These two files can be located anywhere, but I chose to place these under
the \mrtg\run\ directory.

Its pretty simple, just run a normal MRTG ping probe type .cfg file like the
ping.cfg attached and run it every however long you want to do it. X.X.X.X
is the IP address of the router you want to ping from, Y.Y.Y.Y is the IP
address of the destination address you want to ping, and RW is the Read
Write SNMP Community String of the router the pings are sourced from. Within
the perl script you can modify the number of packets to send, size of
packets and timeout period. I've adjusted these to reflect what our service
providers based their SLA's on.

As with SNMP and the issues involving security, you should use strong SNMP
community strings for both RO and RW, and shouldn't be identical. You should
never use public. Also, you should also apply snmp community strings to
restrict SNMP access to each device by only the network management servers.

As to displaying the data received, I use a custom cgi script such as the
latency.cgi I've attached. I can then include as many lines as I want on the
same graph, or display them individually. Simply modify the paths and test
to display on the page and off you go. You can also change the graph time
periods.

I've found on some IOS versions that there are issues on memory leaks with
very quick snmp commands like sets and gets and this crashes remote access
to the router, but it still routes traffic. The leaks occur over 2-3 days
and required a reboot to fix the problem. To overcome this on routers that I
cant upgrade, I stagger the requests so that it doesn't get barraged, but
deals with 1, has a break, and then gets another. This seams to work ok for
me.

Sing out if you need any further help.

Steve






----Original Message-----
From: Chuck Harpham [mailto:charpham at symantec.com] 
Sent: Wednesday, September 04, 2002 9:20 AM
To: Steven Williams
Cc: mrtg at list.ee.ethz.ch; mrtg-bounce at list.ee.ethz.ch
Subject: [mrtg] Re: Round trip time between distant routers



Question.

I would also like to use this script to monitor round trip between routers,
but I have been unable to get any of the mrtg scripts (i.e "mrtg")  to work
with this to generate nice graphs.. Unfortunately I lack the skills to
create perl sripts and I am wondering if someone might have a script that
can generate graphs of round-trips between routers over time....
any help would be appreciated....

thanks

Chuck Harpham
Symantec Corporation
Network Engineer/IT Communications/Springfield
charpham at symantec.com





|---------+-------------------------------------->
|         |           Steven Williams            |
|         |           <Steven.Williams at computersh|
|         |           are.com.au>                |
|         |           Sent by:                   |
|         |           mrtg-bounce at list.ee.ethz.ch|
|         |                                      |
|         |                                      |
|         |           09/03/2002 03:45 PM        |
|         |                                      |
|---------+-------------------------------------->
 
>---------------------------------------------------------------------------
-------------------------------------------------------|
  |
|
  |       To:       mrtg at list.ee.ethz.ch
|
  |       cc:
|
  |       Subject:  [mrtg] Re: Round trip time between distant routers
|
 
>---------------------------------------------------------------------------
-------------------------------------------------------|





If you need some help, email me off line.

I've been able to get this to work across various platforms and IOS
versions, but you need to be aware that some IOS versions suffer from
memory
leaks due when rapid snmp sets and gets are processed. I've got this
working
nicely now, but sing out if you need a hand.

Steve

-----Original Message-----
From: Makai József [mailto:Jozsef.Makai at siemens.hu]
Sent: Tuesday, September 03, 2002 5:56 PM
To: Steven Williams; mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Re: Round trip time between distant routers

Thanks Steven,

Jozsef

> -----Original Message-----
> From: Steven Williams [mailto:Steven.Williams at computershare.com.au]
> Sent: Tuesday, September 03, 2002 3:10 AM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: Round trip time between distant routers
>
>
>
> As long as you have SNMP RW access, you can use Cisco Ping MIB.
>
> -----Original Message-----
> From: Peter W. Osel [mailto:pwo at Infineon.COM]
> Sent: Tuesday, September 03, 2002 1:29 AM
> To: Makai József
> Cc: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: Round trip time between distant routers
>
>
> > *** Makai József <Jozsef.Makai at siemens.hu>
> > *** [2002-09-02 08:12:23]:
> > I would like to monitor the round trip time between two
> distant routers.
>
> take a look at
> http://www.marmoset.net/~knail1/scripts/rping/rping.html
>
> Cheers
>     --pwo
>
>
> [Slogan of the moment]
> >>>>> And Now For Something Completely Different ...
>
> It might look like I'm doing nothing,
> but at the cellular level I'm really quite busy.
>
>
> --
> Peter W. Osel                   Principal - Development Systems
> Infineon Technologies           Email: pwo at Infineon.COM
> North America Corp.             Phone: +1 (408) 501 6321
> 1730 North First Street         Fax:   +1 (408) 501 2410
> San Jose, CA 95112, USA         WWW:   http://pwo.de/
>
> pgp key fingerprint = 79 2D DD 49 C0 AA D8 CF  2C F9 A5 6A BA 37 0E 28
>
> --
> 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
>
>
> ---
> This email and any files transmitted with it are solely
> intended for the use of the
> addressee(s) and may contain information that is confidential
> and privileged.  If you
> receive this email in error, please advise us by return email
> immediately.  Please also
> disregard the contents of the email, delete it and destroy
> any copies immediately.
> Computershare Limited and its subsidiaries do not accept
> liability for the views
> expressed in the email or for the consequences of any
> computer viruses that may be
> transmitted with this email
>
> This email is also subject to copyright.  No part of it
> should be reproduced, adapted or
> transmitted without the written consent of the copyright owner.
>
> --
> 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
>


---
This email and any files transmitted with it are solely intended for the
use of the
addressee(s) and may contain information that is confidential and
privileged.  If you
receive this email in error, please advise us by return email immediately.
Please also
disregard the contents of the email, delete it and destroy any copies
immediately.
Computershare Limited and its subsidiaries do not accept liability for the
views
expressed in the email or for the consequences of any computer viruses that
may be
transmitted with this email

This email is also subject to copyright.  No part of it should be
reproduced, adapted or
transmitted without the written consent of the copyright owner.

--
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





--
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



---
This email and any files transmitted with it are solely intended for the use of the
addressee(s) and may contain information that is confidential and privileged.  If you
receive this email in error, please advise us by return email immediately.  Please also
disregard the contents of the email, delete it and destroy any copies immediately.
Computershare Limited and its subsidiaries do not accept liability for the views
expressed in the email or for the consequences of any computer viruses that may be
transmitted with this email

This email is also subject to copyright.  No part of it should be reproduced, adapted or 
transmitted without the written consent of the copyright owner.


-- Attached file removed by Listar and put at URL below --
-- Type: application/octet-stream
-- Size: 9k (10213 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/02-pingNodeNT.pl


-- Attached file removed by Listar and put at URL below --
-- Type: application/octet-stream
-- Size: 24k (24958 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/SNMP_Session.pm


-- Attached file removed by Listar and put at URL below --
-- Type: application/octet-stream
-- Size: 2k (3062 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/ping.cfg


-- Attached file removed by Listar and put at URL below --
-- Type: application/octet-stream
-- Size: 9k (9270 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/Latency.cgi


--
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



More information about the mrtg mailing list