Cricket for Windows
"Danilo Castro Dy" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
This is to answer the assertion that Cricket does not run in Windows or that
it has been reported running in Windows but there is no proof or
documentation about it.
I'm able to run Cricket in Windows 2003 Server and Windows XP Workstation.
See below and/or attached sample configuration.
Regards,
Dandy
Installing and Configuring Cricket 1.0.5 for Windows 2003 Server
1. Perl
Download ActivePerl from http://www.activestate.com/Products/ActivePerl and
install it. It will be installed in C:\Perl> by default.
Check your installed Perl version. It should be 5.004 or higher
C:\> perl -V
Check Perl Package Module
C:\> ppm
2. Perl Modules
Use PPM utility to install the following Perl Modules
MD5 CPAN: by-authors/id/GAAS/Digest-MD5-*.tar.gz
LWP CPAN: by-authors/id/GAAS/libwww-perl-*.tar.gz
DB_File CPAN: by-authors/id/PMQS/DB_File-*.tar.gz
Date::Parse or Timedate CPAN: by-authors/id/GBARR/Timedate-*.tar.gz
Time::HiRes CPAN: by-authors/id/DEWEG/Time-HiRes-*.tar.gz
Create the directory C:\>Download and download the following Perl Module to
it and extract it.
SNMP_Session http://www.switch.ch/misc/leinen/snmp/perl/dist
3. RRD
Download RRD from http://oss.oetiker.ch/rrdtool/download.en.html to
C:\>Download and extract it
Install RRD
C:\> cd \download\rrdtool\bindings\perl-shared
C:\Download\rrdtool\bindings\perl-shared> ppm install rrds.ppd
4. NMAKE
Download nmake utility from
ftp://ftp.microsoft.com/SoftLib/MSLfiles/nmake15.exe to C:\>Windows\
System32
Execute it to extract three files - NMAKE.EXE, NMAKE.ERR, and README.TXT
5. Install SNMP_Session
C:\>cd \Perl\download\SNMP_Session-*
C:\Download\SNMP_Session-*> perl Makefile.PL
C:\Download\SNMP_Session-*> nmake test
C:\Download\SNMP_Session-*> nmake install
6. Cricket
Download cricket from http://cricket.sourceforge.net/download/ and extract
it to C:\>
7. SNMP_Session
Copy the following file from C:\>Download\SNMP_Session-*\lib to
C:\>cricket-1.0.5\lib
BER.pm
SNMP_Session.pm
SNMP_util.pm
8. Subtree-sets
Edit the file C:\cricket\subtree-sets to describe exactly where your Cricket
installation is. It should look like what follows:
----------------------------subtree-sets-------------------------------
# This file lists the subtrees that will be processed together in one
# set. See the comments at the beginning of collect-subtrees for more info.
# This will be passed to collector so it can find the Config Tree.
# If this directory does not start with a slash, it will
# have $HOME prepended.
base: /cricket-1.0.5/cricket-config
# this is where logs will be put. (The $HOME rule applies here too.)
logdir: /cricket-1.0.5/cricket-logs
set normal:
/routers
/router-interfaces
/packetshaper
/switches
----------------------------subtree-sets-------------------------------
9. Global.pm
Hardcode the 'HOME' variable in the file
'C:\cricket-1.0.5\lib\common\global.pm'. Change the line from
$gCricketHome ||= $ENV{'HOME'};
to..
$gCricketHome ||= '/cricket-1.0.5';
10. Sample Config
10.1 Copy the following directory
C:\cricket-1.0.5\sample-config
to...
C:\cricket-1.0.5\cricket-config
10.2 Remove everything inside C:\cricket-1.0.5\cricket-config except the
following;
Defaults
routers
router-interfaces
switches
10.3 Edit the file C:\cricket-1.0.5\cricket-config\Defaults and change the
line from
snmp-community = public
to..
snmp-community = secret
NOTE: secret is your network devices SNMP read-only community.
11. Sample Router Config
11.1 Put the devices hostname and IP Addresses in
C:\Windows\System32\drivers\etc\hosts
192.168.1.1 RT1 ; Cisco 7513 Router
192.168.1.2 RT2 ; Cisco 7513 Router
11.2 Create the following directory inside
C:\cricket-1.0.5\cricket-config\router-interfaces
RT1
RT2
11.3 Edit the file
C:\cricket-1.0.5\cricket-config\router-interfaces\Defaults. Change the line
from
# snmp-community = secret
to..
snmp-community = secret
NOTE: secret is your network devices SNMP read-only community.
11.4 Copy C:\cricket-1.0.5\cricket-config\router-interfaces\Defaults to all
directories created in 11.2 and delete it from
C:\cricket-1.0.5\cricket-config\router-interfaces
11.5 Capture all router interfaces information
C:\cricket-1.0.5\util> perl listInterfaces RT1 secret >
\cricket-1.0.5\cricket-config\router-interfaces\RT1\interfaces
C:\cricket-1.0.5\util> perl listInterfaces RT2 secret >
\cricket-1.0.5\cricket-config\router-interfaces\RT2\interfaces
NOTE: Don't forget to remove the following from 'interfaces'
- null interface
- loopback interface
- unnecessary sub-interface information from ATM interfaces
- other useless information
11.6 Edit the file C:\cricket-1.0.5\cricket-config\routers\Defaults. Change
the line from
# snmp-community = not-public
to..
snmp-community = secret
NOTE: secret is your network devices SNMP read-only community.
11.7 Edit the file C:\cricket-1.0.5\cricket-config\routers\Targets. It
should look like what follows
-------------------------------------Targets----------------------------
target RT1
target-type = Cisco-7500-Router
short-desc = "RTR1"
target RT2
target-type = Cisco-7500-Router
short-desc = "RTR2"
-------------------------------------Targets----------------------------
11.8 After making any changes to your 'cricket-config' you need to run
'compile'.
C:\cricket-1.0.5> perl compile
(Cricket should compile your configuration)
11.9 Run collector with the 'debug' option to catch potential errors.
C:\ cricket-1.0.5> perl collector --loglevel debug
(Cricket should create the RRD files in the newly formed
'C:\cricket-1.0.5\cricket-data').
12. Sample Switch Config
12.1 Download switches.tgz by Todd A. Green from
http://cricket.sourceforge.net/contrib/ to C:\Download and extract it
12.2 Copy C:\Download\switches\util\listSwitchInterfaces to
C:\cricket-1.0.5\util
12.3 Put the devices hostname and IP Addresses in
C:\Windows\System32\drivers\etc\hosts
192.168.2.1 SW1 ; Cisco Catalyst 6509 Switch
192.168.2.2 SW2 ; Cisco Catalyst 6509 Switch
12.4 Create the following directory inside
C:\cricket-1.0.5\cricket-config\router-interfaces
SW1
SW2
12.5 Create Defaults file to all directories created in 12.4
-------------------------------Defaults-------------------------------
# switches / switch-ports subtree
#
# I setup a switch-interface targetType to only contain the
# variables that all switch interfaces (ports, vlans, etc) would have
# Modify as you wish
#
# Note this first line of the default target.
# This maps the interface-name variable of each target to the ifName
variable in the switch
# The actual map is in the root Defaults file
Target --default--
inst = map(switch-interface-name)
rrd-datafile = %dataDir%/%auto-target-name%.rrd
switch = %auto-target-name%
snmp-host = %switch%
target-type = switch-interface
directory-desc = "Switches"
targetType switch-interface
ds = "ifInOctets, ifOutOctets,
ifInErrors, ifOutErrors,
ifInUcastPackets, ifOutUcastPackets,
ifInDiscards, ifOutDiscards,
ifInNUcastPackets, ifOutNUcastPackets"
view = "Octets: ifInOctets ifOutOctets,
InPackets: ifInUcastPackets ifInNUcastPackets
ifInDiscards,
OutPackets: ifOutUcastPackets ifOutNUcastPackets
ifOutDiscards,
Errors: ifInErrors ifOutErrors"
-------------------------------Defaults-------------------------------
12.6 Copy C:\Download\switches\switch-config\Defaults and
C:\Download\switches\switch-config\README to
C:\cricket-1.0.5\cricket-config\router-interfaces
12.7 Capture all switch interfaces information
C:\cricket-1.0.5\util> perl listSwitchInterfaces -h SW1 -c secret >
\cricket-1.0.5\cricket-config\router-interfaces\SW1\interfaces
C:\cricket-1.0.5\util> perl listSwitchInterfaces -h SW2 -c secret >
\cricket-1.0.5\cricket-config\router-interfaces\SW2\interfaces
NOTE: Don't forget to remove the following from 'interfaces'
- null interface
- loopback interface
- vlan interface
- other useless information
12.8 Create the file C:\cricket-1.0.5\cricket-config\switches\switches
-------------------------------------switches----------------------------
target SW1
target-type = cisco-2926
short-desc = " Switch 1"
target SW2
target-type = cisco-2926
short-desc = " Switch 2"
-------------------------------------switches----------------------------
12.9 After making any changes to your 'cricket-config' you need to run
'compile'.
C:\cricket-1.0.5> perl compile
(Cricket should compile your configuration)
12.10 Run collector with the 'debug' option to catch potential errors.
C:\ cricket-1.0.5> perl collector --loglevel debug
(Cricket should create the RRD files in the newly formed
'C:\cricket-1.0.5\cricket-data').
13. Sample PacketShaper Config
13.1 Create the following directory in C:\cricket-1.0.5\cricket-config
packetshaper
13.2 Put the devices hostname and IP Addresses in
C:\Windows\System32\drivers\etc\hosts
192.168.3.1 PS1 ; PacketShaper 4500
192.168.3.2 PS2 ; PacketShaper 4500
13.3 Create the following directory in
C:\cricket-1.0.5\cricket-config\packetshaper
PS1
PS2
13.4 Create a file C:\cricket-1.0.5\cricket-config\packetshaper\Defaults
-----------------------------Defaults------------------------
#
# Packetshaper Defaults
#
OID className 1.3.6.1.4.1.2334.2.1.4.2.1.2
OID classByteCount 1.3.6.1.4.1.2334.2.1.4.2.1.5
datasource classByteCount
ds-source = snmp://%snmp%/classByteCount.%inst%
graph classByteCount
color = dark-green
draw-as = AREA
legend = "Average bits in"
y-axis = "bits per second"
units = "bits/sec"
scale = 8,*
bytes = true
map packetshaper-class-name
base-oid = className
match = %class-name%
# Packetshaper subtree
#
# I setup a packetshaper-class targetType to only contain the
# variables that all paketshaper class would have
# Modify as you wish
#
# Note this first line of the default target.
Target --default--
inst = map(packetshaper-class-name)
rrd-datafile = %dataDir%/%auto-target-name%.rrd
packetshaper = %auto-target-name%
snmp-host = %packetshaper%
target-type = packetshaper-class
targetType packetshaper-class
ds = "classByteCount, classByteCount"
view = "Octets:classByteCount"
-----------------------------Defaults------------------------
13.5 Create the file "classes" to all the directories created in 13.3
-----------------------------classes------------------------
target --default--
packetshaper = PS1
directory-desc = "PS1"
snmp-community = secret
target Inbound
class-name = Inbound
short-desc = "Total Inbound"
target Outbound
class-name = Outbound
short-desc = "Total Outbound"
target TEST.IN
class-name = TEST.IN
short-desc = "UAT inbound"
target TEST.OUT
class-name = TEST.OUT
short-desc = "UAT outbound"
-----------------------------classes------------------------
13.6 After making any changes to your 'cricket-config' you need to run
'compile'.
C:\cricket-1.0.5> perl compile
(Cricket should compile your configuration)
13.7 Run collector with the 'debug' option to catch potential errors.
C:\ cricket-1.0.5> perl collector --loglevel debug
(Cricket should create the RRD files in the newly formed
'C:\cricket-1.0.5\cricket-data').
14. Schedule Task
Create a batch file C:\cricket-1.0.5\cricket.bat and configure Task
Scheduler to run it every five minutes.
----cricket.bat----
@echo off
C:
cd \cricket-1.0.5
call C:\perl\bin\perl.exe C:\cricket-1.0.5\collector
exit
----cricket.bat----
15. IIS
Point your Web Server home directory to C:\cricket-1.0.5
Read 'ActivePerl-WinFaq6.html' from C:\Perl\html\faq\Windows or follow the
following configuration;
- Run IIS MMC
- Right-click "Default Web Site" and select "Properties"
- Select "Home Directory" tab, then select "configuration."
- In the "Mappings" tab, select "Add.."
- In the "Executable" type C:\Perl\bin\perl.exe "%s %s"
- In the "Extension" type .cgi
- Select "Ok"
- Select "Add" again
- In the "Executable" type C:\Perl\bin\perlis.dll
- In the "Extension" type .pl
- Select "Ok"
- Select "Web Service Extension"
- Select "All Unknown CGI Extensions", then select "Allow"
- Select "All Unknown ISAPI Extensions", then select "Allow"
16. Grapher.cgi
Edit 'grapher.cgi'. Change:
$Common::global::gConfigRoot ||= 'cricket-config';
to. . .
$Common::global::gConfigRoot ||= '/cricket-1.0.5/cricket-config';
17. Test
Test your Cricket installation by using your web browser:
http://localhost/grapher.cgi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
cricket-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cricket-users
cricket..txt
(text/plain, 12.4 KB)
Installing and Configuring Cricket 1.0.5 for Windows 2003 Server
1. Perl
Download ActivePerl from http://www.activestate.com/Products/ActivePerl and install it. It will be installed in C:\Perl> by default.
Check your installed Perl version. It should be 5.004 or higher
C:\> perl V
Check Perl Package Module
C:\> ppm
2. Perl Modules
Use PPM utility to install the following Perl Modules
MD5 CPAN: by-authors/id/GAAS/Digest-MD5-*.tar.gz
LWP CPAN: by-authors/id/GAAS/libwww-perl-*.tar.gz
DB_File CPAN: by-authors/id/PMQS/DB_File-*.tar.gz
Date::Parse or Timedate CPAN: by-authors/id/GBARR/Timedate-*.tar.gz
Time::HiRes CPAN: by-authors/id/DEWEG/Time-HiRes-*.tar.gz
Create the directory C:\>Download and download the following Perl Module to it and extract it.
SNMP_Session http://www.switch.ch/misc/leinen/snmp/perl/dist
3. RRD
Download RRD from http://oss.oetiker.ch/rrdtool/download.en.html to C:\>Download and extract it
Install RRD
C:\> cd \download\rrdtool\bindings\perl-shared
C:\Download\rrdtool\bindings\perl-shared> ppm install rrds.ppd
4. NMAKE
Download nmake utility from ftp://ftp.microsoft.com/SoftLib/MSLfiles/nmake15.exe to C:\>Windows\ System32
Execute it to extract three files NMAKE.EXE, NMAKE.ERR, and README.TXT
5. Install SNMP_Session
C:\>cd \Perl\download\SNMP_Session-*
C:\Download\SNMP_Session-*> perl Makefile.PL
C:\Download\SNMP_Session-*> nmake test
C:\Download\SNMP_Session-*> nmake install
6. Cricket
Download cricket from http://cricket.sourceforge.net/download/ and extract it to C:\>
7. SNMP_Session
Copy the following file from C:\>Download\SNMP_Session-*\lib to C:\>cricket-1.0.5\lib
BER.pm
SNMP_Session.pm
SNMP_util.pm
8. Subtree-sets
Edit the file C:\cricket\subtree-sets to describe exactly where your Cricket installation is. It should look like what follows:
----------------------------subtree-sets-------------------------------
# This file lists the subtrees that will be processed together in one
# set. See the comments at the beginning of collect-subtrees for more info.
# This will be passed to collector so it can find the Config Tree.
# If this directory does not start with a slash, it will
# have $HOME prepended.
base: /cricket-1.0.5/cricket-config
# this is where logs will be put. (The $HOME rule applies here too.)
logdir: /cricket-1.0.5/cricket-logs
set normal:
/routers
/router-interfaces
/packetshaper
/switches
----------------------------subtree-sets-------------------------------
9. Global.pm
Hardcode the 'HOME' variable in the file 'C:\cricket-1.0.5\lib\common\global.pm'. Change the line from
$gCricketHome ||= $ENV{'HOME'};
to..
$gCricketHome ||= '/cricket-1.0.5';
10. Sample Config
10.1 Copy the following directory
C:\cricket-1.0.5\sample-config
to...
C:\cricket-1.0.5\cricket-config
10.2 Remove everything inside C:\cricket-1.0.5\cricket-config except the following;
Defaults
routers
router-interfaces
switches
10.3 Edit the file C:\cricket-1.0.5\cricket-config\Defaults and change the line from
snmp-community = public
to..
snmp-community = secret
NOTE: secret is your network devices SNMP read-only community.
11. Sample Router Config
11.1 Put the devices hostname and IP Addresses in C:\Windows\System32\drivers\etc\hosts
192.168.1.1 RT1 ; Cisco 7513 Router
192.168.1.2 RT2 ; Cisco 7513 Router
11.2 Create the following directory inside C:\cricket-1.0.5\cricket-config\router-interfaces
RT1
RT2
11.3 Edit the file C:\cricket-1.0.5\cricket-config\router-interfaces\Defaults. Change the line from
# snmp-community = secret
to..
snmp-community = secret
NOTE: secret is your network devices SNMP read-only community.
11.4 Copy C:\cricket-1.0.5\cricket-config\router-interfaces\Defaults to all directories created in 11.2 and delete it from C:\cricket-1.0.5\cricket-config\router-interfaces
11.5 Capture all router interfaces information
C:\cricket-1.0.5\util> perl listInterfaces RT1 secret > \cricket-1.0.5\cricket-config\router-interfaces\RT1\interfaces
C:\cricket-1.0.5\util> perl listInterfaces RT2 secret > \cricket-1.0.5\cricket-config\router-interfaces\RT2\interfaces
NOTE: Dont forget to remove the following from interfaces
- null interface
- loopback interface
- unnecessary sub-interface information from ATM interfaces
- other useless information
11.6 Edit the file C:\cricket-1.0.5\cricket-config\routers\Defaults. Change the line from
# snmp-community = not-public
to..
snmp-community = secret
NOTE: secret is your network devices SNMP read-only community.
11.7 Edit the file C:\cricket-1.0.5\cricket-config\routers\Targets. It should look like what follows
-------------------------------------Targets----------------------------
target RT1
target-type = Cisco-7500-Router
short-desc = "RTR1"
target RT2
target-type = Cisco-7500-Router
short-desc = "RTR2"
-------------------------------------Targets----------------------------
11.8 After making any changes to your 'cricket-config' you need to run 'compile'.
C:\cricket-1.0.5> perl compile
(Cricket should compile your configuration)
11.9 Run collector with the 'debug' option to catch potential errors.
C:\ cricket-1.0.5> perl collector --loglevel debug
(Cricket should create the RRD files in the newly formed 'C:\cricket-1.0.5\cricket-data').
12. Sample Switch Config
12.1 Download switches.tgz by Todd A. Green from http://cricket.sourceforge.net/contrib/ to C:\Download and extract it
12.2 Copy C:\Download\switches\util\listSwitchInterfaces to C:\cricket-1.0.5\util
12.3 Put the devices hostname and IP Addresses in C:\Windows\System32\drivers\etc\hosts
192.168.2.1 SW1 ; Cisco Catalyst 6509 Switch
192.168.2.2 SW2 ; Cisco Catalyst 6509 Switch
12.4 Create the following directory inside C:\cricket-1.0.5\cricket-config\router-interfaces
SW1
SW2
12.5 Create Defaults file to all directories created in 12.4
-------------------------------Defaults-------------------------------
# switches / switch-ports subtree
#
# I setup a switch-interface targetType to only contain the
# variables that all switch interfaces (ports, vlans, etc) would have
# Modify as you wish
#
# Note this first line of the default target.
# This maps the interface-name variable of each target to the ifName variable in the switch
# The actual map is in the root Defaults file
Target --default--
inst = map(switch-interface-name)
rrd-datafile = %dataDir%/%auto-target-name%.rrd
switch = %auto-target-name%
snmp-host = %switch%
target-type = switch-interface
directory-desc = "Switches"
targetType switch-interface
ds = "ifInOctets, ifOutOctets,
ifInErrors, ifOutErrors,
ifInUcastPackets, ifOutUcastPackets,
ifInDiscards, ifOutDiscards,
ifInNUcastPackets, ifOutNUcastPackets"
view = "Octets: ifInOctets ifOutOctets,
InPackets: ifInUcastPackets ifInNUcastPackets ifInDiscards,
OutPackets: ifOutUcastPackets ifOutNUcastPackets ifOutDiscards,
Errors: ifInErrors ifOutErrors"
-------------------------------Defaults-------------------------------
12.6 Copy C:\Download\switches\switch-config\Defaults and C:\Download\switches\switch-config\README to C:\cricket-1.0.5\cricket-config\router-interfaces
12.7 Capture all switch interfaces information
C:\cricket-1.0.5\util> perl listSwitchInterfaces h SW1 c secret > \cricket-1.0.5\cricket-config\router-interfaces\SW1\interfaces
C:\cricket-1.0.5\util> perl listSwitchInterfaces h SW2 c secret > \cricket-1.0.5\cricket-config\router-interfaces\SW2\interfaces
NOTE: Dont forget to remove the following from interfaces
- null interface
- loopback interface
- vlan interface
- other useless information
12.8 Create the file C:\cricket-1.0.5\cricket-config\switches\switches
-------------------------------------switches----------------------------
target SW1
target-type = cisco-2926
short-desc = " Switch 1"
target SW2
target-type = cisco-2926
short-desc = " Switch 2"
-------------------------------------switches----------------------------
12.9 After making any changes to your 'cricket-config' you need to run 'compile'.
C:\cricket-1.0.5> perl compile
(Cricket should compile your configuration)
12.10 Run collector with the 'debug' option to catch potential errors.
C:\ cricket-1.0.5> perl collector --loglevel debug
(Cricket should create the RRD files in the newly formed 'C:\cricket-1.0.5\cricket-data').
13. Sample PacketShaper Config
13.1 Create the following directory in C:\cricket-1.0.5\cricket-config
packetshaper
13.2 Put the devices hostname and IP Addresses in C:\Windows\System32\drivers\etc\hosts
192.168.3.1 PS1 ; PacketShaper 4500
192.168.3.2 PS2 ; PacketShaper 4500
13.3 Create the following directory in C:\cricket-1.0.5\cricket-config\packetshaper
PS1
PS2
13.4 Create a file C:\cricket-1.0.5\cricket-config\packetshaper\Defaults
-----------------------------Defaults------------------------
#
# Packetshaper Defaults
#
OID className 1.3.6.1.4.1.2334.2.1.4.2.1.2
OID classByteCount 1.3.6.1.4.1.2334.2.1.4.2.1.5
datasource classByteCount
ds-source = snmp://%snmp%/classByteCount.%inst%
graph classByteCount
color = dark-green
draw-as = AREA
legend = "Average bits in"
y-axis = "bits per second"
units = "bits/sec"
scale = 8,*
bytes = true
map packetshaper-class-name
base-oid = className
match = %class-name%
# Packetshaper subtree
#
# I setup a packetshaper-class targetType to only contain the
# variables that all paketshaper class would have
# Modify as you wish
#
# Note this first line of the default target.
Target --default--
inst = map(packetshaper-class-name)
rrd-datafile = %dataDir%/%auto-target-name%.rrd
packetshaper = %auto-target-name%
snmp-host = %packetshaper%
target-type = packetshaper-class
targetType packetshaper-class
ds = "classByteCount, classByteCount"
view = "Octets:classByteCount"
-----------------------------Defaults------------------------
13.5 Create the file classes to all the directories created in 13.3
-----------------------------classes------------------------
target --default--
packetshaper = PS1
directory-desc = "PS1"
snmp-community = secret
target Inbound
class-name = Inbound
short-desc = "Total Inbound"
target Outbound
class-name = Outbound
short-desc = "Total Outbound"
target TEST.IN
class-name = TEST.IN
short-desc = "UAT inbound"
target TEST.OUT
class-name = TEST.OUT
short-desc = "UAT outbound"
-----------------------------classes------------------------
13.6 After making any changes to your 'cricket-config' you need to run 'compile'.
C:\cricket-1.0.5> perl compile
(Cricket should compile your configuration)
13.7 Run collector with the 'debug' option to catch potential errors.
C:\ cricket-1.0.5> perl collector --loglevel debug
(Cricket should create the RRD files in the newly formed 'C:\cricket-1.0.5\cricket-data').
14. Schedule Task
Create a batch file C:\cricket-1.0.5\cricket.bat and configure Task Scheduler to run it every five minutes.
----cricket.bat----
@echo off
C:
cd \cricket-1.0.5
call C:\perl\bin\perl.exe C:\cricket-1.0.5\collector
exit
----cricket.bat----
15. IIS
Point your Web Server home directory to C:\cricket-1.0.5
Read 'ActivePerl-WinFaq6.html' from C:\Perl\html\faq\Windows or follow the following configuration;
- Run IIS MMC
- Right-click Default Web Site and select Properties
- Select Home Directory tab, then select configuration
- In the Mappings tab, select Add..
- In the Executable type C:\Perl\bin\perl.exe %s %s
- In the Extension type .cgi
- Select Ok
- Select Add again
- In the Executable type C:\Perl\bin\perlis.dll
- In the Extension type .pl
- Select Ok
- Select Web Service Extension
- Select All Unknown CGI Extensions, then select Allow
- Select All Unknown ISAPI Extensions, then select Allow
16. Grapher.cgi
Edit 'grapher.cgi'. Change:
$Common::global::gConfigRoot ||= 'cricket-config';
to. . .
$Common::global::gConfigRoot ||= '/cricket-1.0.5/cricket-config';
17. Test
Test your Cricket installation by using your web browser:
http://localhost/grapher.cgi