Difference between revisions of "Web interface"

From Proview Wiki
Jump to: navigation, search
Line 1: Line 1:
<p><strong>1. Install java jdk</strong></p>
+
<p><strong>1. Install java jdk</strong><br />Define the environment variable jdk to the path where the package is extracted (e.g. /usr/local) and put $jdk/bin in the PATH.<br />export jdk=/usr/local/jdk?.?.?<br />export PATH=$PATH:$jdk/bin</p>
<p><br /> Define the environment variable jdk to the path where the package is extracted (e.g. /usr/local) and put $jdk/bin in the PATH.</p>
+
<p><strong>2. In the Security object under the $Node object: set DefaultWebPriv to RtRead.</strong><br />Inserted the system group into WebSystemGroup in the Secturity object</p>
<p>export jdk=/usr/local/jdk?.?.?<br /> export PATH=$PATH:$jdk/bin</p>
+
<p><br /><strong>3. In the Webhandler object under the $Node object: enable login, alarmlist,eventlog and navigator.</strong></p>
<p><br /> <strong>2. In the Security object under the $Node object: set DefaultWebPriv to RtRead.</strong></p>
+
<p><br /><strong>4. In OpPlace Object, insert hierarchies in EventSelectList that you want to see alarms from.</strong></p>
<ul>
+
<p><br /><strong>5. Create one WebGraph object under the Webhandler object for each process graph you want to display.</strong><br />Set Name to the java name of the process graph, which is usually the Ge name with uppercase for the first letter, e.g. Mygraph.</p>
<li>Inserted the system group into WebSystemGroup in the Secturity object<strong></strong></li>
+
<p><br /><strong>6. Build</strong></p>
</ul>
+
<p><br /><strong>7. Open the process graphs. In File/Graph Attributes set IsJavaFrame to 1 and enter the with of the graph in pixels (~400 - 1000).</strong></p>
<p><strong>3. In the Webhandler object under the $Node object: enable login, alarmlist,eventlog and navigator.</strong></p>
+
<p><br /><strong>8. Activate File/Export/Java and check in the terminal window that the compilation is ok.</strong><br />To test on the development station</p>
<p><strong>4. In OpPlace Object, insert hierarchies in EventSelectList that you want to see alarms from.</strong></p>
+
<p><br /><strong>9. Install apache</strong><br />Make sure that the directory $pwrp_web can be opened by the webserver.</p>
<p><strong>5. Create one WebGraph object under the Webhandler object for each process graph you want to display.</strong></p>
+
<p>add in /etc/apache2/apache2.conf :</p>
<ul>
+
<p><br />Alias /pwrp_web/ /usr/pwrp/myproj/common/web/<br />&lt;Directory /usr/pwrp/myproj/common/web&gt;<br />Options Indexes MultiViews<br />AllowOverride None<br />Order allow,deny<br />Allow from all<br />&lt;/Directory&gt;</p>
<li>Set Name to the java name of the process graph, which is usually the Ge name with uppercase for the first letter, e.g. Mygraph.</li>
+
<p><br />Restart Apache</p>
</ul>
+
<p><br /><strong>10. Copy pwr_rt_client.jar, pwr_jop.jar and pwr_jopc.jar from $pwr_lib $pwrp_web.</strong></p>
<p><strong>6. Build</strong></p>
+
<p><br /><strong>11. Start Proview runtime and check that the processes rt_webmon, rt_webmonmh and rt_webmonelog are running (with 'ps x')</strong></p>
<p><strong>7. Open the process graphs. In File/Graph Attributes set IsJavaFrame to 1 and enter the with of the graph in pixels (~400 - 1000).</strong></p>
+
<p><br /><strong>12. Open mynode/pwrp_web/index.html in the web browser</strong></p>
<p><strong>8. Activate File/Export/Java and check in the terminal window that the compilation is ok.</strong></p>
+
<p><br /> To test on the development station</p>
+
<p><br /> <strong>9. Install apache<br /></strong></p>
+
<p>Make sure that the directory $pwrp_web can be opened by the webserver.<br /><br /></p>
+
<p>add in /etc/apache2/apache2.conf&nbsp;:<br /><br /></p>
+
<p><br /> Alias /pwrp_web/ /usr/pwrp/myproj/common/web/<br /> &lt;Directory /usr/pwrp/myproj/common/web&gt;<br /> Options Indexes MultiViews<br /> AllowOverride None<br /> Order allow,deny<br /> Allow from all<br /> &lt;/Directory&gt;</p>
+
<p>Restart Apache</p>
+
<ul>
+
</ul>
+
<p><br /> <strong>10. Copy pwr_rt_client.jar, pwr_jop.jar and pwr_jopc.jar from $pwr_lib $pwrp_web.</strong></p>
+
<p><strong></strong><br /> <strong>11. Start Proview runtime and check that the processes rt_webmon, rt_webmonmh and rt_webmonelog are running (with 'ps x')</strong><strong></strong></p>
+
<p><strong>12. Open mynode/pwrp_web/index.html in the web browser</strong></p>
+

Revision as of 06:48, 6 August 2013

1. Install java jdk
Define the environment variable jdk to the path where the package is extracted (e.g. /usr/local) and put $jdk/bin in the PATH.
export jdk=/usr/local/jdk?.?.?
export PATH=$PATH:$jdk/bin

2. In the Security object under the $Node object: set DefaultWebPriv to RtRead.
Inserted the system group into WebSystemGroup in the Secturity object


3. In the Webhandler object under the $Node object: enable login, alarmlist,eventlog and navigator.


4. In OpPlace Object, insert hierarchies in EventSelectList that you want to see alarms from.


5. Create one WebGraph object under the Webhandler object for each process graph you want to display.
Set Name to the java name of the process graph, which is usually the Ge name with uppercase for the first letter, e.g. Mygraph.


6. Build


7. Open the process graphs. In File/Graph Attributes set IsJavaFrame to 1 and enter the with of the graph in pixels (~400 - 1000).


8. Activate File/Export/Java and check in the terminal window that the compilation is ok.
To test on the development station


9. Install apache
Make sure that the directory $pwrp_web can be opened by the webserver.

add in /etc/apache2/apache2.conf :


Alias /pwrp_web/ /usr/pwrp/myproj/common/web/
<Directory /usr/pwrp/myproj/common/web>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


Restart Apache


10. Copy pwr_rt_client.jar, pwr_jop.jar and pwr_jopc.jar from $pwr_lib $pwrp_web.


11. Start Proview runtime and check that the processes rt_webmon, rt_webmonmh and rt_webmonelog are running (with 'ps x')


12. Open mynode/pwrp_web/index.html in the web browser

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox