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

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

    Re: nmon2web graph problem

    ‏2013-09-25T14:01:45Z  

    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"

     

     

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-03T13:24:00Z  

    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"

     

     

    I am new to this so could you please explain what is the location i should give for the below comment:

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

    Also i changed the WEB_DIR ="/"

    Do i need to rerun the script nmon2web.pl. Thanks in advance.
     

     

     

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-03T14:27:10Z  
    • geeksaix
    • ‏2013-10-03T13:24:00Z

    I am new to this so could you please explain what is the location i should give for the below comment:

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

    Also i changed the WEB_DIR ="/"

    Do i need to rerun the script nmon2web.pl. Thanks in advance.
     

     

     

    So what is and what isn't working? Hard to make recommendations.

    The nmon2web.cgi goes in /home/nmon/html/cgi-bin.  (Make sure the permissions allow the Apache server to run the file.)

    WEB-DIR="/":  When you point your browser at http://<yourhost>/index.html, does it show the Nmon2web page?

    The cgi program creates charts dynamically. You don't have to rerun nmon2web.pl.  I'm assuming you've already run it and it put the data in the correct directory.  (you'll see hardware serial numbers as subdirectories in /home/nmon/html)

     

     

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-04T05:29:52Z  

    So what is and what isn't working? Hard to make recommendations.

    The nmon2web.cgi goes in /home/nmon/html/cgi-bin.  (Make sure the permissions allow the Apache server to run the file.)

    WEB-DIR="/":  When you point your browser at http://<yourhost>/index.html, does it show the Nmon2web page?

    The cgi program creates charts dynamically. You don't have to rerun nmon2web.pl.  I'm assuming you've already run it and it put the data in the correct directory.  (you'll see hardware serial numbers as subdirectories in /home/nmon/html)

     

     

    The data from the script got generated in the folder

    /home/nmon/html/020607835/Dedicated/dbser/2013/

    In that folder we have subfolders may and june and inside that subfolders 01,02..30 which contains data and index.html is there.
    So I have pointed my WEB_DIR=/020607835/Dedicated/dbser/2013/

    But still then drop down is empty.  I couldn't figure out where it went wrong.

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-04T14:38:23Z  
    • geeksaix
    • ‏2013-10-04T05:29:52Z

    The data from the script got generated in the folder

    /home/nmon/html/020607835/Dedicated/dbser/2013/

    In that folder we have subfolders may and june and inside that subfolders 01,02..30 which contains data and index.html is there.
    So I have pointed my WEB_DIR=/020607835/Dedicated/dbser/2013/

    But still then drop down is empty.  I couldn't figure out where it went wrong.

    See the second post in this thread.  WEB_DIR="/".

     

    The nmon2web.cgi program uses WEB_DIR to build the URL address to the nmon2web page on your web server as follows

    http://<your server>/$WEB_DIR/index.html

    In your case, the nmon2web index.html file is in the root directory

    htttp://<your server>/index.html

    So set WEB_DIR to "" or "/" (either works)

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-05T07:27:00Z  

    See the second post in this thread.  WEB_DIR="/".

     

    The nmon2web.cgi program uses WEB_DIR to build the URL address to the nmon2web page on your web server as follows

    http://<your server>/$WEB_DIR/index.html

    In your case, the nmon2web index.html file is in the root directory

    htttp://<your server>/index.html

    So set WEB_DIR to "" or "/" (either works)

    Thanks for the reply, I have changed my config based on that.PFB my config in nmon2web.pl and confirm whether its proper.

    my $NMON_DIR="/nmon/nmon_files";    # where my .nmon files are placed
    my $HTTP_DIR="/";    # Absolute path to index.html
     

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-06T16:33:29Z  
    • geeksaix
    • ‏2013-10-05T07:27:00Z

    Thanks for the reply, I have changed my config based on that.PFB my config in nmon2web.pl and confirm whether its proper.

    my $NMON_DIR="/nmon/nmon_files";    # where my .nmon files are placed
    my $HTTP_DIR="/";    # Absolute path to index.html
     

    The setting are reasonable based on what you've described above.

     

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-11T13:24:56Z  

    The setting are reasonable based on what you've described above.

     

    PFA my config files and the parameters I want to have the apache run its home directory in nmon user's home /home/nmon/html

    nmon directory ownership nmon:nmon permission 755.

    /home/nmon/html ownership apache:apache permission 755

    The data is in location
    /home/nmon/html/020607835/Dedicated/dbser/2013/

    thanks in advance. the .nmon file generates its output in the above folder when i run the perl script.

    Attachments

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-11T14:30:31Z  
    • geeksaix
    • ‏2013-10-11T13:24:56Z

    PFA my config files and the parameters I want to have the apache run its home directory in nmon user's home /home/nmon/html

    nmon directory ownership nmon:nmon permission 755.

    /home/nmon/html ownership apache:apache permission 755

    The data is in location
    /home/nmon/html/020607835/Dedicated/dbser/2013/

    thanks in advance. the .nmon file generates its output in the above folder when i run the perl script.

    You are using a variant of my program by Allan Canot.  My comments were based on my version of nmon2web.  I didn't realize how much he changed things. 

     

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-12T04:20:39Z  

    You are using a variant of my program by Allan Canot.  My comments were based on my version of nmon2web.  I didn't realize how much he changed things. 

     

    Can you provide me the link for me to download your nmon program from the web. Thanks in advance.

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-12T14:24:34Z  
    • geeksaix
    • ‏2013-10-12T04:20:39Z

    Can you provide me the link for me to download your nmon program from the web. Thanks in advance.

    For the moment, it's at

    http://ca.astound.net/~baspence/AIXtip/nmon2web.htm

     

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-17T05:47:31Z  

    At the outset I thank you very much for providing me the required support quickly. Now I am able to view the graph. But when i choose from and to dates in  Display the Aggregate Utilization on a Partitioned System tab its showing some error.

    Also PFB logs of apache.

    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] cannot remove `*.gif', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] cannot remove `index.html', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] cannot remove `rrd_graph', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] Unable to open //020607835/Shared/sharedpool/rrd_graph, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] Premature end of script headers: nmon2web.cgi, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] cannot remove `*.gif', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013

     

     

    Attachments

    Updated on 2013-10-17T06:31:31Z at 2013-10-17T06:31:31Z by geeksaix
  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-17T14:52:25Z  
    • geeksaix
    • ‏2013-10-17T05:47:31Z

    At the outset I thank you very much for providing me the required support quickly. Now I am able to view the graph. But when i choose from and to dates in  Display the Aggregate Utilization on a Partitioned System tab its showing some error.

    Also PFB logs of apache.

    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] cannot remove `*.gif', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] cannot remove `index.html', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] cannot remove `rrd_graph', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] Unable to open //020607835/Shared/sharedpool/rrd_graph, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:10 2013] [error] [client 10.20.120.43] Premature end of script headers: nmon2web.cgi, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=03&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] cannot remove `*.gif', referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] : No such file or directory, referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013
    [Thu Oct 17 12:05:57 2013] [error] [client 10.20.120.43] rm: , referer: http://10.29.1.27/?server=dbser%7CDedicated%7C020607835%7C20130523%7C20130608&month=06&day=04&year=2013

     

     

    The URL is missing the cgi program name (red text)  http://10.29.1.27/cgi-bin/nmon2web.cgi?server=.....

    There are a couple possibilities:

    1) My first guess would be that the index.html file has changed.  It creates the URL. Has this been modified?

    2) The nmon2web.cgi only aggregates "Shared" partitions.  I see Dedicated in the URL, which are ignored.

     

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-18T13:01:41Z  

    The URL is missing the cgi program name (red text)  http://10.29.1.27/cgi-bin/nmon2web.cgi?server=.....

    There are a couple possibilities:

    1) My first guess would be that the index.html file has changed.  It creates the URL. Has this been modified?

    2) The nmon2web.cgi only aggregates "Shared" partitions.  I see Dedicated in the URL, which are ignored.

     

    There are no changes in index.html. As per point 2 i suppose the LPAR is a dedicated. Do i have any way to plot the graph for dedicated. is there any way to aggregate data for 'Dedicated' partitions.

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-18T13:46:14Z  
    • geeksaix
    • ‏2013-10-18T13:01:41Z

    There are no changes in index.html. As per point 2 i suppose the LPAR is a dedicated. Do i have any way to plot the graph for dedicated. is there any way to aggregate data for 'Dedicated' partitions.

    No, the nmon2web tool was designed to monitor the free pool.  You can edit the nmon2web.cgi file as follows

    Go to the following section of code in nmon2web.cgi

        for( $i=0;$i<@sserver;$i++ ) {

            $db = "../$sserver[$i]/rrddata/lpar.rrd";
            $first = `rrdtool first $db`;
            $last = `rrdtool last $db`;
            if ($UTC_START <= $last && $UTC_END >= $first ) {

            print RRDGRAPH (qq|DEF:P${i}=$db:PhysicalCPU:AVERAGE $type:P${i}$color[$i%20]:"$sserver[$i]" |);
            $type="STACK";
          

           } # end if

          } # end foreach 

     

    Copy/paste this section below the last line  "} # end foreach".  Then change "sserver" to "dserver" in the copied section.

     

        for( $i=0;$i<@dserver;$i++ ) {

          $db = "../$dserver[$i]/rrddata/lpar.rrd";
          $first = `rrdtool first $db`;
          $last = `rrdtool last $db`;
          if ($UTC_START <= $last && $UTC_END >= $first ) {

            print RRDGRAPH (qq|DEF:P${i}=$db:PhysicalCPU:AVERAGE $type:P${i}$color[$i%20]:"$dserver[$i]" |);
            $type="STACK";


            } # end if

       } # end foreach   

     

    I haven't been able to test this. I don't have nmon files from multiple dedicated partitions on the same server. Let me know if it works.

    Updated on 2013-10-18T13:50:51Z at 2013-10-18T13:50:51Z by BruceSpencer
  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-18T15:31:42Z  

    No, the nmon2web tool was designed to monitor the free pool.  You can edit the nmon2web.cgi file as follows

    Go to the following section of code in nmon2web.cgi

        for( $i=0;$i<@sserver;$i++ ) {

            $db = "../$sserver[$i]/rrddata/lpar.rrd";
            $first = `rrdtool first $db`;
            $last = `rrdtool last $db`;
            if ($UTC_START <= $last && $UTC_END >= $first ) {

            print RRDGRAPH (qq|DEF:P${i}=$db:PhysicalCPU:AVERAGE $type:P${i}$color[$i%20]:"$sserver[$i]" |);
            $type="STACK";
          

           } # end if

          } # end foreach 

     

    Copy/paste this section below the last line  "} # end foreach".  Then change "sserver" to "dserver" in the copied section.

     

        for( $i=0;$i<@dserver;$i++ ) {

          $db = "../$dserver[$i]/rrddata/lpar.rrd";
          $first = `rrdtool first $db`;
          $last = `rrdtool last $db`;
          if ($UTC_START <= $last && $UTC_END >= $first ) {

            print RRDGRAPH (qq|DEF:P${i}=$db:PhysicalCPU:AVERAGE $type:P${i}$color[$i%20]:"$dserver[$i]" |);
            $type="STACK";


            } # end if

       } # end foreach   

     

    I haven't been able to test this. I don't have nmon files from multiple dedicated partitions on the same server. Let me know if it works.

    The above workaround doesn't work.  I was able to test when I found a nmon for dedicated partitions.  I didn't want you to waste your time.  I'll look at this over the weekend,

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-19T09:51:25Z  

    The above workaround doesn't work.  I was able to test when I found a nmon for dedicated partitions.  I didn't want you to waste your time.  I'll look at this over the weekend,

    If you require nmon of dedicated partitions i will share my nmon files for testing it.

     

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-20T18:13:07Z  
    • geeksaix
    • ‏2013-10-19T09:51:25Z

    If you require nmon of dedicated partitions i will share my nmon files for testing it.

     

    Yes, can you share some of your nmon files?  That would be helpful.  I finished the update, and need to test it.

    If possible, can you include nmon files from dedicated partitions on the same frame (taken at the same time).

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-22T04:43:08Z  

    Yes, can you share some of your nmon files?  That would be helpful.  I finished the update, and need to test it.

    If possible, can you include nmon files from dedicated partitions on the same frame (taken at the same time).

    Sorry for the delayed response. PFA nmon files 'as is' given to me.

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-22T04:44:55Z  
    • geeksaix
    • ‏2013-10-22T04:43:08Z

    Sorry for the delayed response. PFA nmon files 'as is' given to me.

     

  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-22T16:23:29Z  
    • geeksaix
    • ‏2013-10-22T04:44:55Z

     

    This update displays aggregate utilization for shared and dedicated partitions.

    I consider it a "beta", so give it a try and let me know how it works.  I tested it with your data. Seems ok.

     

    Attachments

  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-23T06:25:46Z  

    This update displays aggregate utilization for shared and dedicated partitions.

    I consider it a "beta", so give it a try and let me know how it works.  I tested it with your data. Seems ok.

     

    Hi,

        I extracted the files in my existing location and When i put it in a server to test with default apache web directory(/var/www/html) & cgi-bin directory(/var/www/cgi-bin). In nmon2web.cgi I made the following changes,

    $WEB_DIR="";
    $DIRECTORY="/var/www/html";

    Then i copied the nmon2web.pl program to /usr/local/bin and made the following changes

    $NMON_DIR="/nmon";
    $HTTP_DIR="/var/www/html";

    and run the script.

    PFA screenshots which gave the following error

    when i choose start and end date in 'Display the Aggregate Utilization on a Partitioned System' it displayed "Internal server error"

    Could you please help me to find where I went wrong. PFB the apache logs

    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] rm: cannot remove `*.gif': No such file or directory, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] rm: cannot remove `index.html': No such file or directory, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] rm: cannot remove `rrd_graph': No such file or directory, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] Unable to open /020607835/Shared/sharedpool/rrd_graph, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] Premature end of script headers: nmon2web.cgi, referer: http://10.29.1.27/

    Thanks in advance

    Attachments

    Updated on 2013-10-23T09:20:53Z at 2013-10-23T09:20:53Z by geeksaix
  • BruceSpencer
    BruceSpencer
    297 Posts

    Re: nmon2web graph problem

    ‏2013-10-23T13:47:10Z  
    • geeksaix
    • ‏2013-10-23T06:25:46Z

    Hi,

        I extracted the files in my existing location and When i put it in a server to test with default apache web directory(/var/www/html) & cgi-bin directory(/var/www/cgi-bin). In nmon2web.cgi I made the following changes,

    $WEB_DIR="";
    $DIRECTORY="/var/www/html";

    Then i copied the nmon2web.pl program to /usr/local/bin and made the following changes

    $NMON_DIR="/nmon";
    $HTTP_DIR="/var/www/html";

    and run the script.

    PFA screenshots which gave the following error

    when i choose start and end date in 'Display the Aggregate Utilization on a Partitioned System' it displayed "Internal server error"

    Could you please help me to find where I went wrong. PFB the apache logs

    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] rm: cannot remove `*.gif': No such file or directory, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] rm: cannot remove `index.html': No such file or directory, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] rm: cannot remove `rrd_graph': No such file or directory, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] Unable to open /020607835/Shared/sharedpool/rrd_graph, referer: http://10.29.1.27/
    [Wed Oct 23 08:12:47 2013] [error] [client 10.20.120.22] Premature end of script headers: nmon2web.cgi, referer: http://10.29.1.27/

    Thanks in advance

    First, it appears you are using the wrong nmon2web.cgi file.   I changed the names of "WEB_DIR" and "DIRECTORY". to "WEB_SUBDIR" and "WEB_FULLPATH"  in the current version. 

    Second, you are missing the directory for the charts generated by the nmon2web.cgi program:   /var/www/html/<serialnumber>/Shared/sharedpool.  It appears you have only dedicated partitions.  If so, you need to create this directory. (Sorry, I forgot to mention this).

    There are two ways to create this directory:

    1. Process the next nmon.csv file.  The new nmon2web.pl will create this directory.

    2. Manual: 

         mkdir -p /var/www/html/<serialnumber>/Shared/sharedpool

         chmod 777 /var/www/html/<serialnumber>/Shared/sharedpool

     

    PS This is the first POWER server that I've seen in recent years with dedicated-only partitions.   Very unusual

    Updated on 2013-10-23T13:52:10Z at 2013-10-23T13:52:10Z by BruceSpencer
  • geeksaix
    geeksaix
    14 Posts

    Re: nmon2web graph problem

    ‏2013-10-24T06:44:37Z  

    First, it appears you are using the wrong nmon2web.cgi file.   I changed the names of "WEB_DIR" and "DIRECTORY". to "WEB_SUBDIR" and "WEB_FULLPATH"  in the current version. 

    Second, you are missing the directory for the charts generated by the nmon2web.cgi program:   /var/www/html/<serialnumber>/Shared/sharedpool.  It appears you have only dedicated partitions.  If so, you need to create this directory. (Sorry, I forgot to mention this).

    There are two ways to create this directory:

    1. Process the next nmon.csv file.  The new nmon2web.pl will create this directory.

    2. Manual: 

         mkdir -p /var/www/html/<serialnumber>/Shared/sharedpool

         chmod 777 /var/www/html/<serialnumber>/Shared/sharedpool

     

    PS This is the first POWER server that I've seen in recent years with dedicated-only partitions.   Very unusual

    I Thank you very much sir for providing continued support to resolve the issue. Now it's working fine.
    I have changed the variables to WEB_SUBDIR & WEB_FULLPATH. I haven't created the directory manually. I once again thank you for helping me out. I am marking this thread as resolved.