Страница 1 из 1

помогите найти

Добавлено: 2011-01-11 10:08:49
QweЯty
когда начинал изучать bsd еще пару лет назад...

наткнулся на интересный проект на html/php для linux/unix

там посредством некскольких php страниц
выдавалось о системме почти все:
- характеристики матери, проца, устройств PCI, VGA, LAN и прочие данные(год, марка, irq, ) обо всем железе
- характеристики работы машины: какая ось, версия, аптайм, температура(опцианально, заводилась с помощью установления пакета mbmon из портов)
- характеристики винтов, точнее разделов.. скока места осталось свободно в цифрах и графиках
- активность машины в целом: на скока загружены сетевые, на скока загружены проц, память, своп, скока активных юзеров на машине, скока процессов висит


проект назывался что то типа lifestats +/- пара трамвайных остановок в названии :)

хотелось бы поставить, а не могу вспомнить название:(

заранее благодарен

Re: помогите найти

Добавлено: 2011-01-11 10:14:17
Гость
Случайно не "коньки"

Re: помогите найти

Добавлено: 2011-01-11 11:29:33
manefesto
про трамвайные остановки порадовало =)

Re: помогите найти

Добавлено: 2011-01-11 15:11:59
hizel
поиск по этому форуму только в заголовках по ключевому слову "ненужно" и автору "hizel" - только на пистоне

Re: помогите найти

Добавлено: 2011-01-11 15:25:20
QweЯty
?????

Re: помогите найти

Добавлено: 2011-01-11 15:32:27
manefesto
phpsysinfo ?

Re: помогите найти

Добавлено: 2011-01-11 15:44:52
QweЯty
http://bounatelecom.files.wordpress.com ... =468&h=274

судя по скрину, то оно,

БОЛЬШОЕ СПАСИБО ВСЕМ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

но название то как похоже:)

с тем что давал в первом посту:))

Re: помогите найти

Добавлено: 2011-01-11 15:48:48
manefesto
и где тут трамваи ?

Re: помогите найти

Добавлено: 2011-01-11 15:53:27
QweЯty
опаздывают как всегда.... по расписанию...

Re: помогите найти

Добавлено: 2011-01-15 0:23:43
QweЯty
а можете, кто использует, подсказать....


как подключить модуль ps и psstatus

описано:

модуль ps

Код: Выделить всё

radist04ka# cat PS.config.php
<?php
/**
 * PS Plugin Config File
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PSI_Plugin_PS
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
 * @copyright 2009 phpSysInfo
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
 * @version   SVN: $Id: PS.config.php 324 2009-09-06 10:58:38Z bigmichi1 $
 * @link      http://phpsysinfo.sourceforge.net
 */
 /**
 * define how to access the ps statistic data
 * - 'command' ps command is run everytime the block gets refreshed or build / on WINNT information is retrieved everytime through WMI
 * - 'data' (a file must be available in the data directory of the phpsysinfo installation with the filename "ps.txt"; content is the output from "ps -axo pid,ppid,pmem,args")
 */
define('PSI_PLUGIN_PS_ACCESS', 'command');
модуль psstatus

Код: Выделить всё

radist04ka# cat PSStatus.config.php
<?php
/**
 * PSSTATUS Plugin Config File
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PSI_Plugin_PSStatus
 * @author    Michael Cramer <BigMichi1@users.sourceforge.net>
 * @copyright 2009 phpSysInfo
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License
 * @version   SVN: $Id: PSStatus.config.php 152 2009-03-25 13:12:25Z bigmichi1 $
 * @link      http://phpsysinfo.sourceforge.net
 */
 /**
 * define how to access the psstatus statistic data
 * - 'command' pidof command is run everytime the block gets refreshed or build / on WINNT information is retrieved everytime through WMI
 * - 'data' a file must be available in the data directory of the phpsysinfo installation with the filename "psstatus.txt"; content is the output from
 *   <code>ps=("apache2" "mysqld" "sshd"); for((i=0;i<${#ps};i++)); do echo ${ps[$i]} "|" `pidof -s ${ps[$i]}` ;done</code>
 *
 * @var string
 */
define('PSI_PLUGIN_PSSTATUS_ACCESS', 'command');

/**
 * controls which processes are checked if they are running
 *
 * @var string contains a list of process names that are checked, names are seperated by a comma (on WINNT names must end with '.exe')
 */
define('PSI_PLUGIN_PSSTATUS_PROCESSES', 'mysqld, sshd, explorer.exe');
?>
radist04ka#
что нужно именно сделать?
вроде создал текстовик в папке дата... а все равно по нулям...

Re: помогите найти

Добавлено: 2011-01-15 14:35:27
Alex Keda
конфиг ккойнитть есть? поди туда надо чё-то прописать

Re: помогите найти

Добавлено: 2011-01-15 23:59:13
QweЯty
в главном конфиге кроме того, как подключить указанный модуль, больше ничего не сказано....

там просто

Код: Выделить всё

/**
 * Plugins that should be included in xml and output (!!!plugin names are case-sensitive!!!)
 * List of plugins should look like "plugin,plugin,plugin". See /plugins directory
 * - define('PSI_PLUGINS', 'MDStatus,PS'); // list of plugins
 * - define('PSI_PLUGINS', false); //no plugins
 * included plugins:
 * - MDStatus       - show the raid status and whats currently going on
 * - PS             - show a process tree of all running processes
 * - PSStatus       - show a graphical representation if a process is running or not
 * - Quotas         - show a table with all quotas that are active and there current state
 * - SMART          - show S.M.A.R.T. information from drives that support it
 * - BAT            - show battery state on a laptop
 * - ipmi           - show IPMI status
 * - UpdateNotifier - show update notifications (only for Ubuntu server)
 */
define('PSI_PLUGINS', 'PS,PSStatus');

все значения в конфигах плагина стоят нормальные... вроде как:

модуль ps

Код: Выделить всё

define('PSI_PLUGIN_PS_ACCESS', 'data');
модуль psstatus

Код: Выделить всё

define('PSI_PLUGIN_PSSTATUS_ACCESS', 'data');
define('PSI_PLUGIN_PSSTATUS_PROCESSES', 'mysqld, sshd, httpd, irssi, eggdrop, pichi');

Код: Выделить всё

radist04ka# ls data/
./                    ModelTranslation.txt  ps.txt
../                   distros.ini           psstatus.txt
чего еще надо:(
не работает:(