Ignore:
Timestamp:
07/01/07 18:38:47 (17 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/search.php:

  • set host view for host detail

web/addons/job_monarch/index.php:

  • enable host view again

web/addons/job_monarch/host_view.php:

  • get available metrics from archive

web/addons/job_monarch/templates/host_view.tpl:

  • remove size restrictions from graphs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/host_view.php

    r231 r399  
    6767        global $job_start, $job_stop;
    6868
     69        //print_r( $metrics );
     70
     71        //printf( "c %s\n", $clustername );
     72
     73        $trd = new TarchRrdGraph( $clustername, $hostname );
     74        $rrdirs = $trd->getRrdDirs( $period_start, $period_stop );
     75
    6976        $metrics = $metrics[$hostname];
    70         //print_r( $metrics );
     77        $mymetrics = array();
     78
     79        foreach( $rrdirs as $rrdir )
     80        {
     81                $ml     = $trd->dirList( $rrdir );
     82
     83                foreach( $ml as $lmetr )
     84                {
     85                        $metrn_fields   = explode( '.', $lmetr );
     86
     87                        $metrn          = $metrn_fields[0];
     88
     89                        if( !in_array( $metrn, $mymetrics ) )
     90                        {
     91                                $mymetrics[$metrn]      = $metrics[$metrn];
     92                        }
     93                }
     94        }
     95
    7196        $hosts_up = $hosts_up[$hostname];
    7297        //print_r( $hosts_up );
     
    106131        $tpl->assign("ip", $hosts_up[IP]);
    107132
    108         foreach ($metrics as $name => $v)
     133        foreach ($mymetrics as $name => $v)
    109134           {
    110135               if ($v[TYPE] == "string" or $v[TYPE]=="timestamp" or $always_timestamp[$name])
Note: See TracChangeset for help on using the changeset viewer.