diff --git a/htdocs/monitor.php b/htdocs/monitor.php index dcfd133..a47c881 100644 --- a/htdocs/monitor.php +++ b/htdocs/monitor.php @@ -62,7 +62,7 @@ foreach (array( printf('%s',$description,$dn); echo ''; echo '
'; - echo ''; + echo '
'; $attrs = array( 'monitorRuntimeConfig', @@ -70,10 +70,10 @@ foreach (array( ); echo ''; - printf('',_('Type'),'namingContext'); + printf('',_('Type'),'namingContext'); foreach ($attrs as $attr) - printf('',$attr); + printf('',$attr); echo ''; @@ -136,11 +136,11 @@ foreach (array( printf('',$results['cn=Connections,cn=Monitor']['description'],_('LDAP Connections')); printf('
%s%s%s%s%s%s
%s
'); echo '
'; -echo ''; +echo '
'; -printf('', +printf('', _('Total Connections'),$results['cn=Total,cn=Connections,cn=Monitor']['monitorCounter']); -printf('', +printf('', _('Current Connections'),$results['cn=Current,cn=Connections,cn=Monitor']['monitorCounter']); # Look for some connections @@ -150,7 +150,7 @@ foreach ($results as $key => $value) { printf('',$results[$key]['cn']); echo '
%s%s
%s%s
%s%s
%s%s
%s'; - echo ''; + echo '
'; $counter = 0; foreach (array( @@ -175,7 +175,7 @@ foreach ($results as $key => $value) { printf('',$counter++%2==0?'even':'odd'); - printf('', + printf('', $metric,isset($results[$key][$metric]) ? $results[$key][$metric] : ' '); echo ''; } @@ -211,26 +211,26 @@ foreach (array( printf('',$description,$dn); echo '
%s%s%s%s
%s
'; echo '
'; - echo ''; + echo '
'; if (isset($results[$dn]['monitorOpInitiated'])) - printf('', + printf('', 'monitorOpInitiated',$results[$dn]['monitorOpInitiated']); if (isset($results[$dn]['monitorOpCompleted'])) - printf('', + printf('', 'monitorOpCompleted',$results[$dn]['monitorOpCompleted']); if (isset($results[$dn]['monitoredInfo'])) - printf('', + printf('', 'monitoredInfo',$results[$dn]['monitoredInfo']); # Look for some connecitons foreach ($results as $key => $value) { if (preg_match('/^.*,'.$dn.'$/',$key)) { echo ''; - printf('',$results[$key]['cn']); + printf('',$results[$key]['cn']); - echo '
%s%s
%s%s
%s%s
%s%s
%s%s
%s%s
%s%s'; - echo ''; + echo '
'; + echo ''; foreach (array( 'labeledURI', @@ -245,7 +245,7 @@ foreach (array( if (isset($results[$key][$metric])) { printf('',$counter++%2==0?'even':'odd'); - printf('', + printf('', $metric,$results[$key][$metric]); echo '';
%s%s%s%s