grapher.cgi not rendering

Anna Liu <[email protected]>
Newsgroups gmane.network.cricket.user
Message-ID <OF58BD506B.0F1DE8C3-ON8825726B.00649FD5-8825726B.00651680@us.ibm.com>
Spent couple days followed the "Installing Cricket for the Complete 
Beginner", I thought I have Cricket installed until going to the URL with 
//localhost/~cricket/cricket/grapher.cgi.     It displays the text content 
of grapher.cgi itself, not graph.   Seems like perl is not working. 
My system is a RedHat  EL AS 4 update 4.  Perl v5.8.5., Apache v2.0.52..  
I didn't set mod_perl in httpd.conf as it is no longer required in Apache 
2.0.

No error found in /var/log/httpd/error.log.   One line in access.log, show 
as below:

127.0.0.1 - - [21/Jan/2007:15:54:02 -0800] "GET 
/~cricket/cricket/grapher.cci HTTP/1.1" 404 302 "-" "Mozilla/5.0 (X11; U; 
Linux i686; en-US; rv:1.8.0.9) Gecko/20061215 Red Hat/1.5.0.9-0.1.el4 
Firefox/1.5.0.9"

One rrd file was created in 
/home/cricket/cricket-data/router/e2ais-6513.rrd after running 
~/cricket/collector /rouers command.

Appreciate if any one can point me where could go wrong...


Here is the partial output of grapher.cgi:

#!/usr/bin/perl -w
# -*- perl -*-

# Cricket: a configuration, polling and data display wrapper for RRD files
#
#    Copyright (C) 1998 Jeff R. Allen and WebTV Networks, Inc.
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

BEGIN {
    # If you need to change anything in this script, it should only
    # be here, in this BEGIN block. See the README for more info.

    my $programdir = (($0 =~ m:^(.*/):)[0] || "./") . ".";
    eval "require '$programdir/cricket-conf.pl'";
    if (!$Common::global::gInstallRoot && -l $0) {
        eval {
            my $link = readlink($0);
            my $dir = (($link =~ m:^(.*/):)[0] || "./") . ".";
            require "$dir/cricket-conf.pl";
        }
    }



Regards,

Anna Liu - [email protected]

(408)927-2846  Tie:  457-2846
-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.