linux:serverstats_howto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
serverstats_howto [2012/03/07 12:30] – dodger | linux:serverstats_howto [2022/02/11 11:36] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== [HOWTO] Serverstats ====== | ||
+ | |||
====== Descripción ====== | ====== Descripción ====== | ||
Como poner a trabajar la herramienta [[http:// | Como poner a trabajar la herramienta [[http:// | ||
Line 5: | Line 7: | ||
====== Plugins adicionales ====== | ====== Plugins adicionales ====== | ||
===== diskinfo ===== | ===== diskinfo ===== | ||
+ | He modificado el plugin ya que tenía alguna función deprecated en php y fallaba al situar los parámetros devueltos por "'' | ||
+ | ==== Instalación ==== | ||
+ | * Copiar el php del plugin a '' | ||
+ | * Editar el fichero '' | ||
+ | <code php> | ||
+ | * Editar el fichero '' | ||
+ | * Para una gráfica porcentual: | ||
+ | <code php> | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | array( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ) | ||
+ | ) | ||
+ | ); | ||
+ | </ | ||
+ | * Para una gráfica con datos reales: | ||
+ | <code php> | ||
+ | $config[' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | array( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ), | ||
+ | array( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ) | ||
+ | ) | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | |||
+ | graph.php | ||
+ | simple.php | ||
+ | |||
+ | |||
+ | |||
+ | ==== Codigo ==== | ||
<file php diskinfo.php> | <file php diskinfo.php> | ||
<?php | <?php | ||
Line 40: | Line 100: | ||
private $availablespace; | private $availablespace; | ||
- | public function __construct($disk = '/ | + | public function __construct($disk = '/ |
{ | { | ||
$this-> | $this-> |
linux/serverstats_howto.1331123451.txt.gz · Last modified: 2012/03/07 12:30 by dodger