Topic
24 replies Latest Post - ‏2013-10-24T06:44:37Z by geeksaix
geeksaix
geeksaix
14 Posts
ACCEPTED ANSWER

Pinned topic nmon2web graph problem

‏2013-09-17T12:09:39Z |

Hi,

  I have followed the steps given in http://itrus.com/WhitePapers/NMON_2_Web/html/readme.html
and my apache error log shows the following error
[Tue Sep 17 16:40:43 2013] [error] [client 10.20.120.43] File does not exist: /home/nmon/html/performance, referer: http://10.29.1.28/

and the url
The requested URL /performance/cgi-bin/nmon2web.cgi was not found on this server.

I have unzipped nmon2web.tar.gz in /home/nmon(created a user nmon)

nmon2web.cgi
-------------
my $DIRECTORY="/home/nmon/html";        
my $WEB_DIR="/home/nmon/html";

nmon2web.pl
-----------
my $NMON_DIR="/nmon/nmon_files";    # Source directory for nmon csv files
my $HTTP_DIR="/home/nmon/html";    # Absolute path to index.html
my $DB_MONTHS=12;     

httpd.conf
----------
DocumentRoot "/home/nmon/html"
<Directory "/home/nmon/html">

ScriptAlias /cgi-bin/ "/home/nmon/html/cgi-bin/"
<Directory "/home/nmon/html/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

After running nmon2web.pl the contents of nmon file is installed at /home/nmon/html/020607835/Dedicated/dbser/2013/may/01  
/home/nmon/html/020607835/Dedicated/dbser/rrddata

data is available in the above directories. No options in dropdown box.

Kindly ignore my previous post as i have mentioned the topic wrongly.

Attachments

  • BruceSpencer
    BruceSpencer
    297 Posts
    ACCEPTED ANSWER

    Re: nmon2web graph problem

    ‏2013-09-25T14:01:45Z  in response to geeksaix

    This appears to be an apache configuration issue. 

    While httpd.conf points "/cgi-bin/" to ScriptAlias /cgi-bin/ "/home/nmon/html/cgi-bin/"

    the error message has a "performance" directory in the URL  "/performance/cgi-bin/nmon2web.cgi".

     

    Also, the $WEB_DIR is incorrect.  In yourcase it should be blank or "/".

    The CGI program uses $WEB_DIR to build URLs for the files it builds. For example, 

    http://your_host_name/$WEBDIR/index.html

    On my server, I put nmon2web in a web subdirectory. The URL I use to access it is:   http://dodgers.usca.ibm.com/nmon2web/index.html.

    So my $WEB_DIR="/nmon2web"