File: SMART.config.php

package info (click to toggle)
phpsysinfo 3.0.17-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,516 kB
  • ctags: 2,050
  • sloc: xml: 9,488; php: 6,524; makefile: 9
file content (51 lines) | stat: -rw-r--r-- 2,305 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
 * SMART Plugin Config File
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PSI_Plugin_SMART
 * @author    Antoine Bertin <diaoulael@users.sourceforge.net>
 * @copyright 2009 phpSysInfo
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
 * @version   SVN: $Id: SMART.config.php 361 2010-01-31 11:32:30Z jacky672 $
 * @link      http://phpsysinfo.sourceforge.net
 */

/**
 * Smartctl program
 * If the smartctl program is available we can read S.M.A.R.T informations
 * - 'command' smartctl command is run everytime the block gets refreshed or build
 *  if error: Smartctl open device: /dev/sda failed: Permission denied
 *      Not recommended method:
 *          -execute: chmod 4755 /usr/sbin/smartctl
 * - 'data' (a file must be available in the data directory of the
 * phpsysinfo installation with the filename "SMART{disk_number}.txt";
 * content is the output from "smartctl --all device")
 */
define('PSI_PLUGIN_SMART_ACCESS', 'command');

/**
 * Smartctl devices to monitor
 * If the smartctl support is enabled, those disks information will be displayed
 * - define('PSI_PLUGIN_SMART_DEVICES', '/dev/hda,/dev/hdb');  // Will display those two disks informations
 */
define('PSI_PLUGIN_SMART_DEVICES', '/dev/sda, /dev/sdb');

/**
 * Smartctl --device option value
 * If the smartctl support is enabled, enter the --device option value for smartctl command
 * - define('PSI_PLUGIN_SMART_DEVICE', false);  // If this option is not needed
 * - define('PSI_PLUGIN_SMART_DEVICE', 'marvell');  // If marvell
 */
define('PSI_PLUGIN_SMART_DEVICE', false);

/**
 * Smartctl ID# and column name from "Vendor Specific SMART Attributes with Thresholds" table
 * If the smartctl support is enabled, enter the ID#-COLUMN_NAME from "Vendor Specific SMART Attributes with Thresholds" table from smartctl output.
 * COLUMN_NAME of this ID# will be displayed in the phpsysinfo S.M.A.R.T table. If you want RAW_VALUE to be displayed for the temperature (ID# 194) enter 194-RAW_VALUE
 * - define('PSI_PLUGIN_SMART_IDS', '194-VALUE,4-VALUE,009-RAW_VALUE'); // ID#-COLUMN_NAME, ID#-COLUMN_NAME, etc...
 */
define('PSI_PLUGIN_SMART_IDS', '005-RAW_VALUE,194-RAW_VALUE,4-RAW_VALUE,009-RAW_VALUE,012-RAW_VALUE,193-RAW_VALUE,001-RAW_VALUE,007-RAW_VALUE,200-RAW_VALUE');
?>