Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
analyse.pl
Package: mrtg-2.13.2.zip [view]
Upload User: shbosideng
Upload Date: 2013-05-04
Package Size: 1555k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- # analyse.pl
- #
- # CGI script to generate an HTML page showing WAN traffic broken down by source
- # or destination. Most of the work is done by another script "pie.pl".
- # This script is invoked by http://netmanager/whodo/analyse.html
- #
- # Modification History
- ######################
- # 17 Nov 98 Tony Farr Original coding
- ##############################################################################
- use strict;
- use CGI;
- use CGI::Carp qw(fatalsToBrowser);
- my $q = new CGI;
- my $title= "WAN Traffic by ".( defined($q->param('src')) ? "Destination" : "Source" );
- print $q->header,
- $q->start_html($title),
- $q->h1($title),
- $q->hr;
- my $gifurl= $q->url(-query=>1);
- $gifurl =~ s/analyse.pl/pie.pl/i; # pie.pl uses same path & arguments
- print $q->img({-src=>$gifurl, -align=>'CENTER', -alt=>'Generating pie graph...'});
- print $q->hr,
- $q->small,
- $q->ul(
- $q->li("This page was produced at ".localtime(time)." (aest)." ),
- $q->li( $q->param("src") ?
- "Only sources matching the expression "".$q->param("src")."" have been included."
- :
- $q->param("dest") ?
- "Only destinations matching the expression "".$q->param("dest")."" have been included."
- :
- "All WAN traffic is included."
- )
- );
- print $q->end_html;
- exit 0;