Ejemplo n.º 1
0
$tmpl->set('graphlot',true);
$tmpl->place('header');

 try {
        $check = new Check($check_id);
	$affected = fMessaging::retrieve('affected', fURL::get());
  } catch (fEmptySetException $e) {
?>
        <p class="info">There are currently no Tattle checks. <a href="<?php echo Check::makeURL('add') ?>">Add one now</a></p>
        <?php

  }
	?>

<fieldset>
        <span>Name : <?php echo $check->prepareName(); ?></span> | 
        <span>Target : <?php echo $check->prepareTarget(); ?></span>
        <div class="graphite">
                <div id="canvas" style="padding:1px">
                    <div id="graphcontainer" style="float:left;">
                        <div id="graph" style="width:600px;height:300px"></div>
                        <div id="overview" style="width:600px;height:66px"></div>
                    </div>
                     <p style="clear:left">&nbsp</p>

                      <div class="metricrow" style="display:none">
                         <span id="target" class="metricName"><?php echo $check->prepareTarget();?></span>.
                         <span id="error_threshold"><?php echo $check->prepareError();?></span>
                         <span id="warn_threshold"><?php echo $check->prepareWarn();?></span>
                         <span id="check_id"><?php echo $check->prepareCheckId();?></span> 
                      </div>
Ejemplo n.º 2
0
          <th>Check</th>
          <th>Alert State</th>
          <th>Method</th>
          <th>Status</th>
          <th>Action</th>
          </tr>    
          </thead>
          <tbody>
	<?php 
    $first = TRUE;
    foreach ($subscriptions as $subscription) {
        $check = new Check($subscription->getCheckId());
        ?>
    	<tr>
        <td><?php 
        echo $check->prepareName();
        ?>
</td>
        <td>
        	<?php 
        $status_sub = $status_array[$subscription->prepareThreshold()];
        if ('Error' == $status_sub) {
            ?>
        		<span class="text-error"><?php 
            echo $status_sub;
            ?>
</span>
        	<?php 
        } else {
            ?>
        		<span class="text-warning"><?php 
Ejemplo n.º 3
0
<?php
$tmpl->set('title', 'Self Service Alerts based on Graphite metrics');
$tmpl->set('graphlot',true);
$tmpl->place('header');
 try {
        $check = new Check($check_id);
	$affected = fMessaging::retrieve('affected', fURL::get());
  } catch (fEmptySetException $e) {
?>
        <p class="info">There are currently no Tattle checks. <a href="<?=Check::makeURL('add'); ?>">Add one now</a></p>
        <?php
  } ?>
<fieldset>
        <span>Name : <?=$check->prepareName(); ?></span> | 
        <span>Target : <?=$check->prepareTarget(); ?></span>
        <div class="graphite">
                <div id="canvas" style="padding:1px">
                    <div id="graphcontainer" style="float:left;">
                        <div id="graph" style="width:600px;height:300px"></div>
                        <div id="overview" style="width:600px;height:66px"></div>
                    </div>
                     <p style="clear:left">&nbsp</p>

                      <div class="metricrow" style="display:none">
                         <span id="target" class="metricName"><?=$check->prepareTarget(); ?></span>.
                         <span id="error_threshold"><?=$check->prepareError(); ?></span>
                         <span id="warn_threshold"><?=$check->prepareWarn(); ?></span>
                         <span id="check_id"><?=$check->prepareCheckId(); ?></span> 
                      </div>

            </div>