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