Ignore:
Timestamp:
03/24/13 15:16:58 (11 years ago)
Author:
ramonb
Message:

templates/host_view.tpl:

  • changed report sizes

index.php:

  • added overview-host

host_view.php:

  • added overview-host

graph.php:

  • fixed load color
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/host_view.php

    r720 r734  
    44 * This file is part of Jobmonarch
    55 *
    6  * Copyright (C) 2006  Ramon Bastiaans
     6 * Copyright (C) 2006-2013  Ramon Bastiaans
    77 *
    88 * Jobmonarch is free software; you can redistribute it and/or modify
     
    5858    global $cluster_ul, $hosts_up, $get_metric_string;
    5959    global $cluster, $period_start, $period_stop;
    60     global $job_start, $job_stop;
    61 
    62     $trd = new TarchRrdGraph( $clustername, $hostname );
    63     $rrdirs = $trd->getRrdDirs( $period_start, $period_stop );
    64 
    65     $longtitle = "Batch Archive Node Report :: Powered by Job Monarch!";
    66     $title = "Batch Archive Node Report";
     60    global $job_start, $job_stop, $view, $conf;
     61
     62    $rrdirs = array();
     63    if( $view == "overview-host" )
     64    {
     65        $trd    = new TarchRrdGraph( $clustername, $hostname );
     66        $rrdirs = $trd->getRrdDirs( $period_start, $period_stop );
     67    }
     68    else
     69    {
     70        $rrdirs[] = $conf['rrds'] . '/' . $cluster .'/'. $hostname;
     71    }
     72
     73    $longtitle    = "Batch Archive Node Report :: Powered by Job Monarch!";
     74    $title        = "Batch Archive Node Report";
    6775
    6876    makeHeader( 'host_view', $title, $longtitle );
Note: See TracChangeset for help on using the changeset viewer.