PageRenderTime 39ms CodeModel.GetById 35ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/phpsysinfo/config.php

http://github.com/brinkman83/bashrc
PHP | 245 lines | 26 code | 36 blank | 183 comment | 0 complexity | 7bc207506c882ff23dd1fad436b2041c MD5 | raw file
  1<?php 
  2/**
  3 * PSI Config File
  4 *
  5 * PHP version 5
  6 *
  7 * @category  PHP
  8 * @package   PSI
  9 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
 10 * @copyright 2009 phpSysInfo
 11 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
 12 * @version   SVN: $Id: config.php.new 351 2010-01-22 22:14:38Z jacky672 $
 13 * @link      http://phpsysinfo.sourceforge.net
 14 */
 15 
 16// ********************************
 17//        MAIN PARAMETERS
 18// ********************************
 19
 20/**
 21 * Turn on debugging of some functions and include errors and warnings in xml and provide a popup for displaying errors
 22 * - false : no debug information are stored in xml or displayed
 23 * - true : debug information stored in xml and displayed *be careful if set this to true, may include sensitive information from your pc*
 24 */
 25define('PSI_DEBUG', false);
 26
 27/**
 28 * Additional paths where to look for installed programs
 29 * Example : define('PSI_ADD_PATHS', '/opt/bin,/opt/sbin');
 30 */
 31define('PSI_ADD_PATHS', false);
 32
 33/**
 34 * Plugins that should be included in xml and output (!!!plugin names are case-sensitive!!!)
 35 * List of plugins should look like "plugin,plugin,plugin". See /plugins directory
 36 * - define('PSI_PLUGINS', 'MDStatus,PS'); // list of plugins
 37 * - define('PSI_PLUGINS', false); //no plugins
 38 * included plugins:
 39 * - MDStatus - show the raid status and whats currently going on
 40 * - PS       - show a process tree of all running processes
 41 * - PSStatus - show a graphical representation if a process is running or not
 42 * - Quotas   - show a table with all quotas that are active and there current state
 43 * - SMART    - show S.M.A.R.T. information from drives that support it
 44 * - BAT      - show battery state on a laptop
 45 * - ipmi     - show IPMI status
 46 */
 47define('PSI_PLUGINS', false);
 48
 49
 50// ********************************
 51//       DISPLAY PARAMETERS
 52// ********************************
 53
 54/**
 55 * Define the default language
 56 */
 57define('PSI_DEFAULT_LANG', 'en');
 58
 59/**
 60 * Define the default template
 61 */
 62define('PSI_DEFAULT_TEMPLATE', 'phpsysinfo');
 63
 64/**
 65 * Show or hide language picklist
 66 */
 67define('PSI_SHOW_PICKLIST_LANG', true);
 68
 69/**
 70 * Show or hide template picklist
 71 */
 72define('PSI_SHOW_PICKLIST_TEMPLATE', true);
 73
 74/**
 75 * Define the interval for refreshing data in ms
 76 * - 0 = disabled
 77 * - 1000 = 1 second
 78 * - Default is 60 seconds
 79 */
 80define('PSI_REFRESH', 60000);
 81
 82/**
 83 * Show a graph for current cpuload
 84 * - true = displayed, but it's a performance hit (because we have to wait to get a value, 1 second)
 85 * - false = will not be displayed
 86 */
 87define('PSI_LOAD_BAR', false);
 88
 89/**
 90 * Display the virtual host name and address
 91 * - Default is canonical host name and address
 92 * - Use define('PSI_USE_VHOST', true); to display virtual host name.
 93 */
 94define('PSI_USE_VHOST', false);
 95
 96/**
 97 * Controls the units & format for network, memory and filesystem
 98 * - 1 KiB = 2^10 bytes = 1,024 bytes
 99 * - 1 KB = 10^3 bytes = 1,000 bytes
100 * - 'PiB'    everything is in PeBiByte
101 * - 'TiB'    everything is in TeBiByte
102 * - 'GiB'    everything is in GiBiByte
103 * - 'MiB'    everything is in MeBiByte
104 * - 'KiB'    everything is in KiBiByte
105 * - 'auto_binary' everything is automatic done if value is to big for, e.g MiB then it will be in GiB
106 * - 'PB'    everything is in PetaByte
107 * - 'TB'    everything is in TeraByte
108 * - 'GB'    everything is in GigaByte
109 * - 'MB'    everything is in MegaByte
110 * - 'KB'    everything is in KiloByte
111 * - 'auto_decimal' everything is automatic done if value is to big for, e.g MB then it will be in GB
112 */
113define('PSI_BYTE_FORMAT', 'auto_binary');
114
115/**
116 * Format in which temperature is displayed
117 * - 'c'    shown in celsius
118 * - 'f'    shown in fahrenheit
119 * - 'c-f'  both shown first celsius and fahrenheit in braces
120 * - 'f-c'  both shown first fahrenheit and celsius in braces
121 */
122define('PSI_TEMP_FORMAT', 'c');
123
124
125// ********************************
126//       SENSORS PARAMETERS
127// ********************************
128
129/**
130 * Define the motherboard monitoring program (!!!names are case-sensitive!!!)
131 * We support the following programs so far
132 * - LMSensors  http://www.lm-sensors.org/
133 * - Healthd    http://healthd.thehousleys.net/
134 * - HWSensors  http://www.openbsd.org/
135 * - MBMon      http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
136 * - MBM5       http://mbm.livewiredev.com/
137 * - Coretemp
138 * - IPMI       http://openipmi.sourceforge.net/
139 * - K8Temp     http://hur.st/k8temp/
140 * Example: If you want to use lmsensors : define('PSI_SENSOR_PROGRAM', 'LMSensors');
141 */
142define('PSI_SENSOR_PROGRAM', false);
143
144/**
145 * Define how to access the monitor program
146 * Available methods for the above list are in the following list
147 * default method 'command' should be fine for everybody
148 * !!! tcp connections are only made local and on the default port !!!
149 * - LMSensors  command, file
150 * - Healthd    command
151 * - HWSensors  command
152 * - MBMon      command, tcp
153 * - MBM5       file
154 * - Coretemp   command
155 * - IPMI       command
156 * - K8Temp     command
157 */
158define('PSI_SENSOR_ACCESS', 'command');
159
160/**
161 * Hddtemp program
162 * If the hddtemp program is available we can read the temperature, if hdd is smart capable
163 * !!ATTENTION!! hddtemp might be a security issue
164 * - define('PSI_HDD_TEMP', 'tcp');	     // read data from hddtemp deamon (localhost:7634)
165 * - define('PSI_HDD_TEMP', 'command');  // read data from hddtemp programm (must be set suid)
166 */
167define('PSI_HDD_TEMP', false);
168
169
170// ********************************
171//      FILESYSTEM PARAMETERS
172// ********************************
173
174/**
175 * Show mount point
176 * - true = show mount point
177 * - false = do not show mount point
178 */
179define('PSI_SHOW_MOUNT_POINT', true);
180
181/**
182 * Show mount option
183 * - true = show mount option
184 * - false = do not show mount option
185 */
186define('PSI_SHOW_MOUNT_OPTION', true);
187
188/**
189 * Show inode usage
190 * - true = display used inodes in percent
191 * - false = hide them
192 */
193define('PSI_SHOW_INODES', true);
194
195/**
196 * Hide mounts
197 * Example : define('PSI_HIDE_MOUNTS', '/home,/usr');
198 */
199define('PSI_HIDE_MOUNTS', '');
200
201/**
202 * Hide filesystem types
203 * Example : define('PSI_HIDE_FS_TYPES', 'tmpfs,usbfs');
204 */
205define('PSI_HIDE_FS_TYPES', '');
206
207/**
208 * Hide partitions
209 * Example : define('PSI_HIDE_DISKS', 'rootfs');
210 */
211define('PSI_HIDE_DISKS', '');
212
213
214// ********************************
215//      NETWORK PARAMETERS
216// ********************************
217
218/**
219 * Hide network interfaces
220 * Example : define('PSI_HIDE_NETWORK_INTERFACE', 'eth0,sit0');
221 */
222define('PSI_HIDE_NETWORK_INTERFACE', '');
223
224
225// ********************************
226//        UPS PARAMETERS
227// ********************************
228
229/**
230 * Define the ups monitoring program (!!!names are case-sensitive!!!)
231 * We support the following programs so far
232 * - 1. Apcupsd  http://www.apcupsd.com/
233 * - 2. Nut      http://www.networkupstools.org/
234 * Example: If you want to use Apcupsd : define('PSI_UPS_PROGRAM', 'Apcupsd');
235 */
236define('PSI_UPS_PROGRAM', false);
237
238/**
239 * Apcupsd supports multiple UPSes
240 * You can specify comma delimited list in the form <hostname>:<port> or <ip>:<port>. The defaults are: 127.0.0.1:3551
241 * See the following parameters in apcupsd.conf: NETSERVER, NISIP, NISPORT
242 */
243define('PSI_UPS_APCUPSD_LIST', '127.0.0.1:3551');
244
245?>