linux:serverstats_howto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
serverstats_howto [2012/03/07 12:30] – dodger | linux:serverstats_howto [2018/04/17 08:51] – ↷ Page moved from serverstats_howto to linux:serverstats_howto dodger | ||
---|---|---|---|
Line 5: | Line 5: | ||
====== 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 98: | ||
private $availablespace; | private $availablespace; | ||
- | public function __construct($disk = '/ | + | public function __construct($disk = '/ |
{ | { | ||
$this-> | $this-> |
linux/serverstats_howto.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1