Topic
10 replies Latest Post - ‏2012-06-15T08:38:01Z by nhocksiano
SystemAdmin
SystemAdmin
2402 Posts
ACCEPTED ANSWER

Pinned topic Display the Aggregate Utilization on a Partitioned System

‏2012-02-06T14:45:08Z |
Good day,

Might anyone have some suggestions for the "Display the Aggregate Utilization on a Partitioned System" function on nmon2web? I select a frame and date range but every iteration results in a "500 Internal Server Error".

The other features; daily, long term and configuration all seem to work fine, so I am hoping I am just missing some permission setting or something.

Not sure what info would be helpful so here is a few ...
  • Web server: RHEL 5.1
  • Apache: 2.2.3
  • nmon2web version: March 2011
  • Nmons taken from AIX5.3 and 6.1, with a mix of TOPAS_NMON and NMON 12e for the most part
  • LPARs on various frames; p560, p595, p770 ...etc.

Just wondering if there is a 'you knucklehead, set THIS to be THAT and it will work' solution I am just not picking up somewhere.
Updated on 2012-06-15T08:38:01Z at 2012-06-15T08:38:01Z by nhocksiano
  • BruceSpencer
    BruceSpencer
    297 Posts
    ACCEPTED ANSWER

    Re: Display the Aggregate Utilization on a Partitioned System

    ‏2012-02-06T18:51:59Z  in response to SystemAdmin
    Is this a new problem, or are you setting up nmon2web for the first time?

    If this is a new problem, what changed?

    What does the Apache error_log say? (/var/www/logs/error_log on my system. If not, check your httpd.conf file. It lists the location.)

    The 500 error is related cgi-bin programs (most likely the nmon2web.cgi program). Typically this is a setup issue. First the nmon2web.cgi needs to point to the correct directories (customized at the top of the script), and these directories need to have rwx permissions for the id that runs the web server.
    • SystemAdmin
      SystemAdmin
      2402 Posts
      ACCEPTED ANSWER

      Re: Display the Aggregate Utilization on a Partitioned System

      ‏2012-02-06T19:49:34Z  in response to BruceSpencer
      Hello Bruce, thanks much for the reply!
      We have had nmon2web set up for about a years now and every other graph works great, however the aggregate has never worked. Just getting the time to try and dig into it a bit ...

      Changing the permissions on these directories to have rwx permissions for the id that runs the web server was a great tip and now, at least, it returns a page with some text pertaining to the system SN, micropartitions, start/end dates and CPU/Memory/IO/Net ... but no graphs.

      Here is a snip from the httpd log 'scrubbed' a bit ...
      Mon Feb 06 14:13:40 2012 error client <IP> ERROR: opening '/apps/runbooks/nmon2web/<SN01>/Shared/<HOSTNAME01>/rrddata/ioadapt.rrd': No such file or directory, referer: http://info/runbooks/nmon2web/?server=<HOSTNAME04>|Dedicated|<SN02>|20110214|20120206
      Mon Feb 06 14:13:41 2012 error client <IP> ERROR: opening '/apps/runbooks/nmon2web/<SN01>/Shared/<HOSTNAME02>/rrddata/ioadapt.rrd': No such file or directory, referer: http://info/runbooks/nmon2web/?server=<HOSTNAME04>|Dedicated|<SN02>|20110214|20120206
      Mon Feb 06 14:13:41 2012 error client <IP> ERROR: opening '/apps/runbooks/nmon2web/<SN01>/Shared/<HOSTNAME03>/rrddata/ioadapt.rrd': No such file or directory, referer: http://info/runbooks/nmon2web/?server=<HOSTNAME04>|Dedicated|<SN02>|20110214|20120206
      Mon Feb 06 14:13:57 2012 error client <IP> rm: cannot remove `*.gif': No such file or directory, referer: http://info/runbooks/nmon2web/?server=<HOSTNAME04>|Dedicated|<SN02>|20110214|20120206
      Mon Feb 06 14:13:58 2012 error client <IP> ls: *gif: No such file or directory, referer: http://info/runbooks/nmon2web/?server=<HOSTNAME04>|Dedicated|<SN02>|20110214|20120206
      Odd that the paths specified, /apps/runbooks/nmon2web/<SN01>/Shared/<HOSTNAME03>/rrddata, do have tons of rrd files, just not ioadapt.rrd.
      Also odd that the end of each line, from referer: on, lists an LPAR, Frame and date range completely different from what is specified.

      Hope I'm making something that resembles sense ...
      Thanks again.
      • BruceSpencer
        BruceSpencer
        297 Posts
        ACCEPTED ANSWER

        Re: Display the Aggregate Utilization on a Partitioned System

        ‏2012-02-07T14:09:49Z  in response to SystemAdmin
        I see two problems: configuration and a missing ioadapt.rrd.

        First, the configuration problem appears to be a mismatch in the nmon2web.cgi and nmon2web.pl files. I suspect the nmon2web.cgi is pointing to the wrong directory. Verify the two files point to the same directories.

        Specifically, I see two web directories where there should only be one.

        Web directory: http://*info*/runbooks/nmon2web/

        Full path name: /*apps*/runbooks/nmon2web/

        The web directory should be a subdirectory of the full path (unless you use symbolic links).

        Second, the missing ioadapt.rrd file is a different problem. This could be caused by a number of things. Can you post one of your nmon.csv files? Also, what is the version/date of nmon2rrd?
        • SystemAdmin
          SystemAdmin
          2402 Posts
          ACCEPTED ANSWER

          Re: Display the Aggregate Utilization on a Partitioned System

          ‏2012-02-07T16:47:33Z  in response to BruceSpencer
          Hello and thanks again.

          For the configuration, there is just the one directory, /apps/runbooks/nmon2web. We have an alias set in the config
          httpd.conf:Alias /runbooks/nmon2web "/apps/runbooks/nmon2web"
          httpd.conf:<Directory "/apps/runbooks/nmon2web">

          As for the http://*info*/runbooks/nmon2web/ ... the info is just a host file entry I use because I too lazy to type out the ungodly long server name.
          You mentioned the nmon2rrd version, we are not using it but do everything via nmon2web. Would that be the problem?

          The version of nmon2web is nmon2web_ver="2.0.1 Jan 24, 2011"
          • BruceSpencer
            BruceSpencer
            297 Posts
            ACCEPTED ANSWER

            Re: Display the Aggregate Utilization on a Partitioned System

            ‏2012-02-07T19:02:21Z  in response to SystemAdmin
            Oops. I meant nmon2web, not nmon2rrd. Too many things going on.

            If the directories are aliased, then the configuration probably is not the problem.

            You say you're seeing text but not graphs for the "aggregated" servers. These charts are created dynamically and are stored in ../nmon2web/<sn>/Shared/sharedpool. A couple things cause problems

            1. Permissions: does the web server user id have rwx permission to sharedpool?
            2. What are the permissions on the *.gif files in the sharedpool directory?
            Can the web process id read/write these files? The error message "Can't rm *gif"
            may mean there are gif files, but the process id doesn't have permission to erase.
            3. If the gif files exist, does the timestamp coincide with when you ran the last query?
            Do the gif files contain charts, or are they empty?
            4. Try erasing the gif files and rerun the query.
            Finally, let's look at the ioadapter.rrd. It would be best to upload a problem nmon.csv file for me to test. Otherwise, I've uploaded the latest version of nmon2web.pl which might fix the problem.
            • SystemAdmin
              SystemAdmin
              2402 Posts
              ACCEPTED ANSWER

              Re: Display the Aggregate Utilization on a Partitioned System

              ‏2012-02-08T18:34:48Z  in response to BruceSpencer
              • Put the attached nmon2web.pl in place.
              • Removed all the gifs from the sharedpool directory
              • chmod / chown 'ed the directories so webserver ID has rwx

              Egad ... graphs!

              Thanks for the support!
              In case no one has mentioned it lately ... these tools are VERY much appreciated.
              • BruceSpencer
                BruceSpencer
                297 Posts
                ACCEPTED ANSWER

                Re: Display the Aggregate Utilization on a Partitioned System

                ‏2012-02-08T19:45:52Z  in response to SystemAdmin
                Glad to hear it's working. It was probably the permissions that fixed it. The updates in the latest nmon2web had nothing to do with the sharedpool directory.
                • carcass
                  carcass
                  1 Post
                  ACCEPTED ANSWER

                  Re: Display the Aggregate Utilization on a Partitioned System

                  ‏2012-05-23T13:33:08Z  in response to BruceSpencer
                  Hi Bruce.
                  Is it possible to display aggregate utilization against dedicated partition?
                  • BruceSpencer
                    BruceSpencer
                    297 Posts
                    ACCEPTED ANSWER

                    Re: Display the Aggregate Utilization on a Partitioned System

                    ‏2012-06-01T21:29:06Z  in response to carcass
                    Can you define "aggregate utilization of a dedicated partition"? Do you mean add up the used CPU over all dedicated partitions?

                    I've had requests to combine dedicated CPU's on the shared pool chart. I declined as it would obscure the utilization of the shared pool.
            • nhocksiano
              nhocksiano
              1 Post
              ACCEPTED ANSWER

              Re: Display the Aggregate Utilization on a Partitioned System

              ‏2012-06-15T08:38:01Z  in response to BruceSpencer
              thank you, BruceSpencer
              I think my problem resolved too