Changeset 723 for branches/0.4/web/addons/job_monarch/libtoga.php
- Timestamp:
- 03/22/13 11:47:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/libtoga.php
r721 r723 711 711 } 712 712 } 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' ) ) 716 716 { 717 717 $this->heartbeat['time'] = $attrs['VAL']; 718 718 } 719 else if( strstr( $attrs['NAME'], ' MONARCH-DOWN' ) )719 else if( strstr( $attrs['NAME'], 'zplugin-monarch-down' ) ) 720 720 { 721 721 $fields = explode( ' ', $attrs['VAL'] ); … … 753 753 } 754 754 } 755 else if( strstr( $attrs['NAME'], ' MONARCH-OFFLINE' ) )755 else if( strstr( $attrs['NAME'], 'zplugin-monarch-offline' ) ) 756 756 { 757 757 $fields = explode( ' ', $attrs['VAL'] ); … … 789 789 } 790 790 } 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 ); 794 794 795 795 if( !isset( $jobs[$jobid] ) )
Note: See TracChangeset
for help on using the changeset viewer.