openMosixWebView - produces web charts for monitoring an openMosix cluster

openMosixWebView reads openMosixcollector's logs and /proc/hpc

openMosixcollector must be running on the node with openmosixwebview.php
so run "openmosixcollector -d" on it. The user running the web 
server (usually apache, www-data, www or nobody), must have permissions to
read /tmp/openmosixcollector. If you are using openMosixCollector < 1.4 you'll
have to change them: "chmod -R a+rx /tmp/openmosixcollector"

Installation:
============
wget http://laurel.datsi.fi.upm.es/~rpons/openmosix/download/openmosixwebview-0.2.12.tar.gz
tar zxvf openmosixwebview-0.2.12.tar.gz
cd openmosixwebview-0.2.12
mkdir /var/www/openmosixwebview
cp * /var/www/openmosixwebview
chmod -R a+rx /tmp/openmosixcollector

And that's all, try:
http://localhost/openmosixwebview/

Comments:
========
If you want to personalize your index.html (note this is not necessary) must have something like this:
	<img src="openmosixwebview.php?width=605&height=200" border="0" alt="Load balancing efficiency">
	<img src="openmosixwebview.php?graph=available&width=605&height=200" border="0" alt="Memory available">
	<img src="openmosixwebview.php?graph=node&n=1" border="0" alt="Node 1">
	<img src="openmosixwebview.php?graph=node&n=1" border="0" alt="Node 2">
	...
	<img src="openmosixwebview.php?graph=node&n=4321" border="0" alt="Node 4321">
	<img src="openmosixwebview.php?graph=load" border="0" alt="Load">
	<img src="openmosixwebview.php?graph=mem" border="0" alt="Memory">

Or you can use PHP:
<img src="openmosixwebview.php?width=605&height=200" border="0" alt="Load balancing efficiency">
<img src="openmosixwebview.php?graph=available&width=605&height=200" border="0" alt="Memory available">

<table>
<tr>
<?php /* PHP Code */
if ($dir = @opendir("/tmp/openmosixcollector")){
  while (($n = readdir($dir)) != false){
    if (is_numeric($n)){
      echo "\t<td><img src=\"openmosixwebview.php?graph=node&n=$n\" border=\"0\" alt=\"Node $n\"></td>\n";
      if ((++$i % 2) == 0){ /* Show 2 pictures/line */
	echo "</tr>\n";
	echo "<tr>\n";
      }
    }
  }
  closedir($dir);
}
?>
</tr>
</table>
<img src="openmosixwebview.php?graph=load" border="0" alt="Load">
<img src="openmosixwebview.php?graph=mem" border="0" alt="Memory">
<img src="openmosixwebview.php?graph=speed" border="0" alt="Speed">
<img src="openmosixwebview.php?graph=util" border="0" alt="Utilizability">

BTW openMosixWebView can show process history (like openMosixHistory) and a monitor with:
openmosixwebview.php?graph=procs
openmosixwebview.php?graph=phist
openmosixwebview.php?graph=monitor

Thanks to:
	* Matthias Rechenburg <mosixview@t-online.de>
	* Gian Paolo Ghilardi <jp80@libero.it>
	* Mirko Caserta <mirko@mcaserta.com>

Comments are welcome. Enjoy :-)

	- Ramon Pons Vivanco <rpons@rinu.org>

$Id: README,v 1.21 2003/02/15 23:18:41 rpons Exp $
