User Tools

Site Tools


linux:serverstats_howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
serverstats_howto [2012/03/07 12:47] dodgerlinux:serverstats_howto [2018/04/17 09:07] dodger
Line 1: Line 1:
 +====== [HOWTO] Serverstats ======
 +
 ====== Descripción ====== ====== Descripción ======
 Como poner a trabajar la herramienta [[http://serverstats.berlios.de|serverstats]] Como poner a trabajar la herramienta [[http://serverstats.berlios.de|serverstats]]
Line 9: Line 11:
   * Copiar el php del plugin a ''sources/''   * Copiar el php del plugin a ''sources/''
   * Editar el fichero ''config/sources.php'' y añadir la linea:   * Editar el fichero ''config/sources.php'' y añadir la linea:
-<code php>$config['diskinfo']['module'] = new diskinfo('/dev/mapper/huge_vg-rtorrent'); </code>+<code php>$config['diskinfo']['module'] = new diskinfo('/dev/mapper/partition'); </code>
   * Editar el fichero ''config/graph.php'' y añadir:   * Editar el fichero ''config/graph.php'' y añadir:
     * Para una gráfica porcentual:     * Para una gráfica porcentual:
 <code php>$config['list'][] = array( <code php>$config['list'][] = array(
-        'title' => '% /home',+        'title' => '% /partition',
         'upperLimit' => 100,         'upperLimit' => 100,
         'lowerLimit' => 0,         'lowerLimit' => 0,
Line 32: Line 34:
 <code php> <code php>
 $config['list'][] = array( $config['list'][] = array(
-        'title' => 'Disk Usage /home/rtorrent',+        'title' => 'Disk Usage /partition',
         'lowerLimit' => 0,         'lowerLimit' => 0,
         'altAutoscaleMax' => true,         'altAutoscaleMax' => true,
Line 98: Line 100:
         private $availablespace;         private $availablespace;
  
-        public function __construct($disk = '/dev/mapper/huge_vg-rtorrent')+        public function __construct($disk = '/dev/mapper/partition')
         {         {
                 $this->disk = $disk;                 $this->disk = $disk;
linux/serverstats_howto.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1