use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ListView; use kartik\dropdown\DropdownX; use kartik\grid\GridView; use kartik\tabs\TabsX; //use robregonm\rgraph\RGraphBarAsset; //use app\assets\RGraphBarAsset; use klikar3\rgraph\RGraph; use klikar3\rgraph\RGraphBar; //RGraphBar::register($this); /* @var $this yii\web\View */ $this->title = 'BaseLine'; $items = app\controllers\ServerViewController::getServersMenu("/index.php?r=server-view%2Fres_disk&id=", $id); $this->registerJs('var autoRefresh = setInterval( function () { window.location.reload(); }, 60000); // this will reload page after every 1 minute. '); date_default_timezone_set('Europe/Berlin'); ?> <div class="site-index"> <div class="body-content"> <?php echo Html::beginTag('div', ['class' => 'dropdown']); ?> <h4>Server: <?php
<div class="body-content"> <h3><?php echo 'Auswertung über alle Server'; ?> </h3> <?php //echo Html::beginTag('div', ['style'=>'text-align: right;']); //echo Html::a('Ressourcen',Url::toRoute(['res_cpu', 'id' => $id])); //echo Html::endTag('div'); echo 'Refreshed on ' . date('d.m.Y H:i:s'); ?> <div class="row"> <?php /*$test = array(); $test = array_chunk( ArrayHelper::getColumn($dataset,'CaptureDate') ,10); \yii\helpers\VarDumper::dump($test, 10, true); */ ?> <?php echo app\controllers\ServerViewController::getPaintLineRep($dataset, $title); ?> </div> </div> </div>
<div class="body-content"> <h3><?php echo 'Server: ' . $servername; ?> </h3> <?php echo Html::beginTag('div', ['style' => 'text-align: right;']); echo Html::a('Ressourcen', Url::toRoute(['res_cpu', 'id' => $id])); echo Html::endTag('div'); echo 'Refreshed on ' . date('d.m.Y H:i:s'); ?> <div class="row"> <?php /*$test = array(); $test = array_chunk( ArrayHelper::getColumn($dataset,'CaptureDate') ,10); \yii\helpers\VarDumper::dump($test, 10, true); */ ?> <?php echo app\controllers\ServerViewController::getPaintLineAgg($servername, $dataset, $cntr, $id, 1); ?> </div> </div> </div>
use yii\helpers\Url; use yii\widgets\ActiveForm; use yii\widgets\ListView; use kartik\grid\GridView; use klikar3\rgraph\RGraphLine; /* @var $this yii\web\View */ /* @var $model app\models\ConfigData */ /* @var $form yii\widgets\ActiveForm */ $this->registerJs("var autoRefresh = setInterval( function ()\n {\n window.location.reload();\n }, 150000); // this will reload page after every 2,5 minutes.\n \n \$(document).ready(function() { \n \$('a[data-toggle=\"tab\"]').on('show.bs.tab', function (e) {\n localStorage.setItem('lastTab', \$(this).attr('href'));\n });\n var lastTab = localStorage.getItem('lastTab');\n if (lastTab) {\n \$('[href=\"' + lastTab + '\"]').tab('show');\n }\n});\n "); date_default_timezone_set('Europe/Berlin'); echo 'Refreshed on ' . date('d.m.Y H:i:s'); ?> <div class="row"> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $datasets, ['Page Life Expectancy', ''], $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_cpu, 'Cpu Utilization %', $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_pps, 'OS: Pages/Sec', $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_dql, 'OS:Disk Queue Length:_Total', $id, 0); ?> <?php echo app\controllers\ServerViewController::getNetLine($servername, $dataset_net, 'BytesTotalPersec', $id, 0); ?> </div>
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; use yii\helpers\Url; use yii\web\JsExpression; use yii\widgets\ActiveForm; use yii\widgets\ListView; use kartik\grid\GridView; use klikar3\rgraph\RGraphLine; /* @var $this yii\web\View */ /* @var $model app\models\ConfigData */ /* @var $form yii\widgets\ActiveForm */ echo 'Refreshed on ' . date('d.m.Y H:i:s'); ?> <div class="row"> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_0, $cntrs[0], $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_1, $cntrs[1], $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_2, $cntrs[2], $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_3, $cntrs[3], $id, 0); ?> </div>
use kartik\grid\GridView; use klikar3\rgraph\RGraphLine; /* @var $this yii\web\View */ /* @var $model app\models\ConfigData */ /* @var $form yii\widgets\ActiveForm */ echo 'Refreshed on ' . date('d.m.Y H:i:s'); ?> <div class="row"> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_0, $cntrs[0], $id, 0); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_1, $cntrs[1], $id, 0, "SQL:Transactions/sec"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_2, $cntrs[2], $id, 0, "SQL: Processes blocked"); ?> <?php //echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_3, $cntrs[3], $id, 0); ?> <?php //echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_4, $cntrs[4], $id, 0); ?> <?php //echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_5, $cntrs[5], $id, 0, ""); ?> <?php //echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_6, $cntrs[6], $id, 0, ""); ?> <?php //echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_7, $cntrs[7], $id, 0);
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; use yii\helpers\Url; use yii\widgets\ActiveForm; use yii\widgets\ListView; use kartik\grid\GridView; use klikar3\rgraph\RGraphLine; /* @var $this yii\web\View */ /* @var $model app\models\ConfigData */ /* @var $form yii\widgets\ActiveForm */ echo 'Refreshed on ' . date('d.m.Y H:i:s'); ?> <div class="row"> <?php echo app\controllers\ServerViewController::getNetLine($servername, $dataset_0, $cntrs[0], $id, 0); ?> <?php echo app\controllers\ServerViewController::getNetLine($servername, $dataset_1, $cntrs[1], $id, 0); ?> <?php echo app\controllers\ServerViewController::getNetLine($servername, $dataset_2, $cntrs[2], $id, 0); ?> </div>
?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_3, $cntrs[3], $id, 0, "Disk Queue Length"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_4, $cntrs[4], $id, 0, "Phys. I/O Rate (Kb/sec)"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_5, $cntrs[5], $id, 0, "Phys. Read I/O Rate (Kb/sec)"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_6, $cntrs[6], $id, 0, "Phys. Write I/O Rate (Kb/sec)"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_7, $cntrs[7], $id, 0, "Phys. Transfers Per Sec"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_8, $cntrs[8], $id, 0, "Phys. Reads Per Sec"); ?> <?php echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_9, $cntrs[9], $id, 0, "Phys. Writes Per Sec"); ?> <?php // echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_10, $cntrs[10], $id, 0); ?> <?php // echo app\controllers\ServerViewController::getPaintLine($servername, $dataset_11, $cntrs[11], $id, 0); ?> </div>