Ignore:
Timestamp:
03/22/13 13:45:32 (11 years ago)
Author:
ramonb
Message:

templates/footer.tpl:

  • changed URL for rrdtool

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

  • changed seperator to _

libtoga.php:

  • changed job-id-incr to job_incr_id
File:
1 edited

Legend:

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

    r725 r726  
    711711            }
    712712        }
    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' ) )
     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'], 'zplugin-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'], 'zplugin-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'], 'zplugin-monarch-job' ) )
    792             {
    793                 sscanf( $attrs['NAME'], 'zplugin-monarch-job-%d-%d', $jobid, $monincr );
     791            else if( strstr( $attrs['NAME'], 'zplugin_monarch_job' ) )
     792            {
     793                sscanf( $attrs['NAME'], 'zplugin_monarch_job_%d_%s$', $monincr, $jobid );
    794794
    795795                if( !isset( $jobs[$jobid] ) )
Note: See TracChangeset for help on using the changeset viewer.