The hooks are not rocket science.  To an extent I made them up as I was looking for potential problems.  The following are from memory, they may need to be tweaked for your configuration:
 
Total connections: netstat -P tcp -n | wc -l
Establish connections: netstat -P tcp -n | grep ESTAB | wc -l
Load average: uptime | sed 's/^.*average//' | tr -d ',' | gawk '{print $2 * 100}'
Cpu over 5 minutes: sar 300 | tail -1 | awk '{print $2 + $3 + $4}'  -- Note: on this one, you need to run it as a background task and send the output to a temp file, and then mv it to the real file.  Otherwise when another task reads it, it will almost always be empty.
 
-----Original Message-----
From: Ron Morita [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 8:59 PM
To: Ng, Kenneth (US)
Cc: 'Don Ely'; 'ragu nandan'; [EMAIL PROTECTED]
Subject: Re: Off the topic:How to measure on Internet (link) speed

Are the firewall hooks you describe (simultaneous connections, cpu utilization, I/O utilization) available as open source somewhere?
Ron

"Ng, Kenneth (US)" wrote:

 Mrtg on a Linux or Unix box: http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html.  Its simple and its free (well, your supposed to send a post card to the author if you like it).  Have it measure the bandwidth of the ISP line.  If you write a small hook to extract stats from the firewall in real time you can also get it to plot various things on the firewall, like simultanous connections, cpu utilization, I/O utilization.
-----Original Message-----
From: Don Ely [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 3:55 PM
To: 'ragu nandan'; [EMAIL PROTECTED]
Subject: RE: Off the topic:How to measure on Internet (link) speed
 
http://computingcentral.msn.com/topics/bandwidth/speedtest50.asp

-----Original Message-----
From: ragu nandan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 05, 2000 10:38 AM
To: [EMAIL PROTECTED]
Subject: Off the topic:How to measure on Internet (link) speed

Greetings
     We have noticed that our T1 has slowed down, and
understandably all users have complained about slow
internet access.
Is there a network tool
a)that would help us determine the throughput that we
are getting.
b)or the location of the bottleneck.
Ours is a very simple configuration.
Internet-->Cisco 7200 (BGP)-->FW-->RSM-->Internal LAN
Our ISP says everything is fine at his end. Thx.
Ragu

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]

Reply via email to