path: phpsysinfo_3.4.4-1/sample/plugin_psstatus/README FILE CONTENT OF psstatus ps=("apache2" "mysqld" "sshd"); for((i=0;i<${#ps};i++)); do echo ${ps[$i]} "|" `pidof -s ${ps[$i]}` ;done path: phpsysinfo_3.4.4-1/sample/logs/sf.log power management: ---Mon, 03 Jun 2013 11:37:12 +0000 GMT--- Executing: pidof -s mysqld ---Mon, 03 Jun 2013 11:37:12 +0000 GMT--- Executing: lspci path: phpsysinfo_3.4.4-1/sample/logs/sf.log Vendor: ATA Model: QEMU HARDDISK Rev: 0.12 Type: Direct-Access ANSI SCSI revision: 05 ---Mon, 03 Jun 2013 11:37:12 +0000 GMT--- Executing: pidof -s explorer.exe ---Mon, 03 Jun 2013 11:37:12 +0000 GMT--- Reading: /home/project-web/phpsysinfo/htdocs/phpsysinfo/data/quotas.tmp path: phpsysinfo_3.4.4-1/debian/tests/phpsysinfo.ini ; Regular expression search in the process name (e.g. "ddclient.*") for non-WinNT systems ; - true : Regular expression search (used pgrep command) ; - false : Normal search (used pidof command) ; USE_REGEX=false path: phpsysinfo_3.4.4-1/debian/tests/phpsysinfo.ini ; - "data" a file must be available in the data directory of the phpsysinfo installation ; with the filename "psstatus.tmp"; content is the output from ; for ps in "apache2" "mysqld" "sshd"; do echo $ps "|" `pidof -s -x "$ps"`; done ; ACCESS="command" path: phpsysinfo_3.4.4-1/debian/tests/phpsysinfo.ini ; 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 path: phpsysinfo_3.4.4-1/plugins/psstatus/class.psstatus.inc.php * a simple view which shows a process name and the status * status determined by calling the "pidof" command line utility, another way is to provide * a file with the output of the pidof utility, so there is no need to run a executeable by the * webserver, the format of the command is written down in the phpsysinfo.ini file, where also * the method of getting the information is configured path: phpsysinfo_3.4.4-1/plugins/psstatus/class.psstatus.inc.php * PSStatus Plugin, which displays the status of configured processes * a simple view which shows a process name and the status * status determined by calling the "pidof" command line utility, another way is to provide * a file with the output of the pidof utility, so there is no need to run a executeable by the * webserver, the format of the command is written down in the phpsysinfo.ini file, where also path: phpsysinfo_3.4.4-1/plugins/psstatus/class.psstatus.inc.php } else { foreach ($processes as $process) { CommonFunctions::executeProgram("pidof", "-s -x \"".$process."\"", $buffer, PSI_DEBUG); if (strlen($buffer) > 0) { $this->_filecontent[] = array($process, $buffer); path: phpsysinfo_3.4.4-1/phpsysinfo.ini.new ; - "data" a file must be available in the data directory of the phpsysinfo installation ; with the filename "psstatus.tmp"; content is the output from ; for ps in "apache2" "mysqld" "sshd"; do echo $ps "|" `pidof -s -x "$ps"`; done ; ACCESS="command" path: phpsysinfo_3.4.4-1/phpsysinfo.ini.new ; Regular expression search in the process name (e.g. "ddclient.*") for non-WinNT systems ; - true : Regular expression search (used pgrep command) ; - false : Normal search (used pidof command) ; USE_REGEX=false path: phpsysinfo_3.4.4-1/phpsysinfo.ini.new ; 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