Remove sample graphite preview, should not have been pushed to master
This commit is contained in:
parent
4ce35b5b95
commit
d4ccc68eab
|
@ -1,49 +0,0 @@
|
|||
<?php
|
||||
|
||||
if (! $object->customvars || ! $object->customvars['GRAPHITEPREFIX']) { return; }
|
||||
|
||||
// [GRAPHITEPOSTFIX] => win-mem physical
|
||||
// [GRAPHITEPREFIX] => monitoring.icinga-private-demo
|
||||
// Graphitepostfix all-ping
|
||||
// Graphiteprefix monitoring.icinga-private-demo
|
||||
|
||||
/*
|
||||
|
||||
|
||||
monitoring.icinga-private-demo.
|
||||
|
||||
c1-dns-1
|
||||
|
||||
.all-ping.
|
||||
|
||||
rta
|
||||
|
||||
*/
|
||||
|
||||
$host = 'graphite.demo.netways.de';
|
||||
$width = 450; // 586
|
||||
$height = 100; // 308
|
||||
$objectName = $object->host_name;
|
||||
if ($object->service_description) {
|
||||
$objectName .= '.' . $object->service_description;
|
||||
}
|
||||
|
||||
$target = sprintf(
|
||||
'%s.%s.%s.%s',
|
||||
$object->customvars['GRAPHITEPREFIX'],
|
||||
$object->host_name,
|
||||
$object->customvars['GRAPHITEPOSTFIX'],
|
||||
'*' // 'rta'
|
||||
);
|
||||
// hideAxes=false&hideYAxis=false&hideGrid=false&uniqueLegend=true&hideLegend=true
|
||||
echo sprintf(
|
||||
'<img src="http://%s/render/?width=%d&height=%d&_salt=%d&target=%s&lineMode=connected&graphOnly=false&lineWidth=1&from=-36hours&hideLegend=true&hideGrid=true&xFormat=%%25a+%%25H%%3A%%25M" height="%d" width="%d" />',
|
||||
$host,
|
||||
$width,
|
||||
$height,
|
||||
time(),
|
||||
urlencode($target),
|
||||
$height,
|
||||
$width
|
||||
);
|
||||
|
|
@ -4,7 +4,6 @@
|
|||
</div>
|
||||
<div class="content" data-base-target="_next">
|
||||
<?= $this->render('show/components/output.phtml') ?>
|
||||
<?= $this->render('show/components/graph.phtml') ?>
|
||||
|
||||
<table class="avp newsection">
|
||||
<tbody>
|
||||
|
|
Loading…
Reference in New Issue