Changeset 734
- Timestamp:
- 03/24/13 15:16:58 (10 years ago)
- Location:
- branches/0.4/web/addons/job_monarch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/graph.php
r733 r734 523 523 $lower_limit = "--lower-limit 0"; 524 524 525 if( !isset( $load_color ) or ( $load_color == '') ) 526 { 527 $load_color = 'FFFFFF'; 528 } 529 525 530 # Calculate time range. 526 531 if ( isset($sourcetime) ) … … 550 555 $debug=0; 551 556 552 if( !isset( $load_color ) )553 {554 $load_color = '000000';555 }556 557 557 558 # Did we generate a command? Run it. -
branches/0.4/web/addons/job_monarch/host_view.php
r720 r734 4 4 * This file is part of Jobmonarch 5 5 * 6 * Copyright (C) 2006 Ramon Bastiaans6 * Copyright (C) 2006-2013 Ramon Bastiaans 7 7 * 8 8 * Jobmonarch is free software; you can redistribute it and/or modify … … 58 58 global $cluster_ul, $hosts_up, $get_metric_string; 59 59 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"; 67 75 68 76 makeHeader( 'host_view', $title, $longtitle ); -
branches/0.4/web/addons/job_monarch/index.php
r727 r734 336 336 $tpl->assign("metric_menu", $metric_menu ); 337 337 338 if( $view == "search" or $view == "host" )338 if( $view == "search" or $view == "host" or $view == "overview-host" ) 339 339 { 340 340 $tpl->newBlock("timeperiod"); … … 351 351 $tpl->assign("hostname", $hostname ); 352 352 353 if( $view == "host" )353 if( $view == "host" or $view == "overview-host" ) 354 354 { 355 355 $tpl->newBlock("hostview"); … … 385 385 } 386 386 387 if( $view == "search" or $view == "host" )387 if( $view == "search" or $view == "host" or $view == "overview-host") 388 388 { 389 389 … … 489 489 break; 490 490 491 case "overview-host": 492 493 includeHostPage(); 494 break; 495 491 496 default: 492 497 … … 524 529 break; 525 530 531 case "overview-host": 532 533 include "./host_view.php"; 534 makeHostView(); 535 break; 536 526 537 default: 527 538 -
branches/0.4/web/addons/job_monarch/templates/host_view.tpl
r399 r734 52 52 <TD ALIGN="CENTER" VALIGN="TOP" WIDTH="395"> 53 53 <IMG ALT="{cluster_url} LOAD" 54 SRC="./graph.php?g=load_report&z= medium&c={cluster_url}&{graphargs}">54 SRC="./graph.php?g=load_report&z=overview-medium&c={cluster_url}&{graphargs}"> 55 55 <IMG ALT="{cluster_url} MEM" 56 SRC="./graph.php?g=mem_report&z= medium&c={cluster_url}&{graphargs}">56 SRC="./graph.php?g=mem_report&z=overview-medium&c={cluster_url}&{graphargs}"> 57 57 <IMG ALT="{cluster_url} CPU" 58 SRC="./graph.php?g=cpu_report&z= medium&c={cluster_url}&{graphargs}">58 SRC="./graph.php?g=cpu_report&z=overview-medium&c={cluster_url}&{graphargs}"> 59 59 <IMG ALT="{cluster_url} NETWORK" 60 SRC="./graph.php?g=network_report&z= medium&c={cluster_url}&{graphargs}">60 SRC="./graph.php?g=network_report&z=overview-medium&c={cluster_url}&{graphargs}"> 61 61 <IMG ALT="{cluster_url} PACKETS" 62 SRC="./graph.php?g=packet_report&z= medium&c={cluster_url}&{graphargs}">62 SRC="./graph.php?g=packet_report&z=overview-medium&c={cluster_url}&{graphargs}"> 63 63 64 64 </TD>
Note: See TracChangeset
for help on using the changeset viewer.