Changeset 723


Ignore:
Timestamp:
03/22/13 11:47:20 (9 years ago)
Author:
ramonb
Message:

libtoga.php,
overview.php,
graph.php:

  • renamed MONARCH-metrics to zplugin-monarch-metrics

version.php:

  • set to 0.4+SVN
Location:
branches/0.4/web/addons/job_monarch
Files:
4 edited

Legend:

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

    r717 r723  
    151151            foreach( $bmetric as $mname => $mval )
    152152            {
    153                 if( ( $mname == 'MONARCH-RJ' ) || ($mname == 'MONARCH-QJ') )
     153                if( ( $mname == 'zplugin-monarch-rj' ) || ($mname == 'zplugin-monarch-qj') )
    154154                {
    155155                    $rjqj_host      = $bhost;
     
    160160        $rrd_dir = "$rrds/$clustername/$rjqj_host/";
    161161
    162         $rj_rrd    = $rrd_dir . "MONARCH-RJ.rrd";
    163         $qj_rrd    = $rrd_dir . "MONARCH-QJ.rrd";
     162        $rj_rrd    = $rrd_dir . "zplugin-monarch-rj.rrd";
     163        $qj_rrd    = $rrd_dir . "zplugin-monarch-qj.rrd";
    164164
    165165        $sorted_hosts    = array();
  • branches/0.4/web/addons/job_monarch/libtoga.php

    r721 r723  
    711711            }
    712712        }
    713         else if( $name == 'METRIC' and strstr( $attrs['NAME'], 'MONARCH' ) and $this->proc_cluster == $this->clustername )
    714         {
    715             if( strstr( $attrs['NAME'], 'MONARCH-HEARTBEAT' ) )
     713        else if( $name == 'METRIC' and strstr( $attrs['NAME'], 'zplugin-monarch' ) and $this->proc_cluster == $this->clustername )
     714        {
     715            if( strstr( $attrs['NAME'], 'zplugin-monarch-heartbeat' ) )
    716716            {
    717717                $this->heartbeat['time'] = $attrs['VAL'];
    718718            }
    719             else if( strstr( $attrs['NAME'], 'MONARCH-DOWN' ) )
     719            else if( strstr( $attrs['NAME'], 'zplugin-monarch-down' ) )
    720720            {
    721721                $fields        = explode( ' ', $attrs['VAL'] );
     
    753753                }
    754754            }
    755             else if( strstr( $attrs['NAME'], 'MONARCH-OFFLINE' ) )
     755            else if( strstr( $attrs['NAME'], 'zplugin-monarch-offline' ) )
    756756            {
    757757                $fields        = explode( ' ', $attrs['VAL'] );
     
    789789                }
    790790            }
    791             else if( strstr( $attrs['NAME'], 'MONARCH-JOB' ) )
    792             {
    793                 sscanf( $attrs['NAME'], 'MONARCH-JOB-%d-%d', $jobid, $monincr );
     791            else if( strstr( $attrs['NAME'], 'zplugin-monarch-job' ) )
     792            {
     793                sscanf( $attrs['NAME'], 'zplugin-monarch-job-%d-%d', $jobid, $monincr );
    794794
    795795                if( !isset( $jobs[$jobid] ) )
  • branches/0.4/web/addons/job_monarch/overview.php

    r719 r723  
    582582        foreach( $bmetric as $mname => $mval )
    583583        {
    584             if( ( $mname == 'MONARCH-RJ' ) || ($mname == 'MONARCH-QJ') )
     584            if( ( $mname == 'zplugin-monarch-rj' ) || ($mname == 'zplugin-monarch-qj') )
    585585            {
    586586                $rjqj_host      = $bhost;
  • branches/0.4/web/addons/job_monarch/version.php

    r500 r723  
    2222 */
    2323
    24 $monarchversion = "0.3.1";
     24$monarchversion = "0.4+SVN";
    2525?>
Note: See TracChangeset for help on using the changeset viewer.