Difference between revisions of "Web interface"

From Proview Wiki
Jump to: navigation, search
(Created page with "<p><strong>1. Install java jdk</strong></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 ...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<p><strong>1. Install java jdk</strong></p>
+
'''1. Install java jdk'''<br />
<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>export jdk=/usr/local/jdk?.?.?<br /> export PATH=$PATH:$jdk/bin</p>
+
 
<p><br /> <strong>2. In the Security object under the $Node object: set DefaultWebPriv to RtRead.</strong></p>
+
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 />
<dl><dd><strong>Inserted the system group into WebSystemGroup in the Secturity object</strong><br /> </dd></dl>
+
 
<p><strong> </strong></p>
+
export jdk=/usr/local/jdk?.?.?<br />
<p><strong>3. In the Webhandler object under the $Node object: enable login, alarmlist,eventlog and navigator.</strong></p>
+
export PATH=$PATH:$jdk/bin<br />
<p><strong>4. In OpPlace Object, insert hierarchies in EventSelectList that you want to see alarms from.</strong><br /> <strong>5. Create one WebGraph object under the Webhandler object for each process graph you want to display.</strong></p>
+
 
<ul>
+
 
<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.<br /><br /> </li>
+
'''2. In the Security object under the $Node object: set DefaultWebPriv to RtRead.'''<br />
</ul>
+
:'''Inserted the system group into WebSystemGroup in the Secturity object'''<br />
<p><strong>6. Build</strong><br /> <br /></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><br /><br /></p>
+
 
<p><strong>8. Activate File/Export/Java and check in the terminal window that the compilation is ok.</strong></p>
+
'''3. In the Webhandler object under the $Node object: enable login, alarmlist,eventlog and navigator.'''<br />
<p><br /> To test on the development station</p>
+
 
<p><br /> <strong>9. Install apache<br /></strong></p>
+
'''4. In OpPlace Object, insert hierarchies in EventSelectList that you want to see alarms from.'''<br />
<p>Make sure that the directory $pwrp_web can be opened by the webserver.<br /><br /></p>
+
'''5. Create one WebGraph object under the Webhandler object for each process graph you want to display.''' <br />
<p>add in /etc/apache2/apache2.conf&nbsp;:<br /><br /></p>
+
*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.<br /><br />
<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>
+
'''6. Build'''<br />
<ul>
+
<br />
</ul>
+
 
<p><br /> <strong>10. Copy pwr_rt_client.jar, pwr_jop.jar and pwr_jopc.jar from $pwr_lib $pwrp_web.</strong><br /> <br /></p>
+
'''7. Open the process graphs. In File/Graph Attributes set IsJavaFrame to 1 and enter the with of the graph in pixels (~400 - 1000).'''<br /><br />
<p><strong>11. Start Proview runtime and check that the processes rt_webmon, rt_webmonmh and rt_webmonelog are running (with 'ps x')</strong><br /> <br /></p>
+
 
<p><strong>12. Open mynode/pwrp_web/index.html in the web browser</strong></p>
+
'''8. Activate File/Export/Java and check in the terminal window that the compilation is ok.'''<br />
 +
 
 +
 
 +
To test on the development station<br />
 +
 
 +
 
 +
'''9. Install apache<br />
 +
 
 +
Make sure that the directory $pwrp_web can be opened by the webserver.<br /><br />
 +
 
 +
add in /etc/apache2/apache2.conf :<br /><br />
 +
 
 +
 
 +
Alias /pwrp_web/ /usr/pwrp/myproj/common/web/<br />
 +
<Directory /usr/pwrp/myproj/common/web><br />
 +
Options Indexes MultiViews<br />
 +
AllowOverride None<br />
 +
Order allow,deny<br />
 +
Allow from all<br />
 +
</Directory><br /><br /><br />
 +
 
 +
* Restart Apache<br />
 +
 
 +
 
 +
'''10. Copy pwr_rt_client.jar, pwr_jop.jar and pwr_jopc.jar from $pwr_lib $pwrp_web.'''<br />
 +
<br />
 +
 
 +
'''11. Start Proview runtime and check that the processes rt_webmon, rt_webmonmh and rt_webmonelog are running (with 'ps x')'''<br />
 +
<br />
 +
 
 +
'''12. Open mynode/pwrp_web/index.html in the web browser'''
 +
 
 +
 
 +
Checks and notes: <br />
 +
 
 +
The Proview java archives are built with the jdk from oracle. <br />
 +
It is recommended to use Proview (out of the box) with the jdk from Oracle and not openJDK <br /> <br />
 +
Be sure you export jdk_home=$jdk/bin rt_wemon uses this environment variable <br /> <br />
 +
Check that the process rt_webmonelog.sh and 'java jpwr.rt.HistServer' is started. It uses port 4447 to handle eventlog requests.

Latest revision as of 04:18, 28 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


Checks and notes:

The Proview java archives are built with the jdk from oracle.
It is recommended to use Proview (out of the box) with the jdk from Oracle and not openJDK

Be sure you export jdk_home=$jdk/bin rt_wemon uses this environment variable

Check that the process rt_webmonelog.sh and 'java jpwr.rt.HistServer' is started. It uses port 4447 to handle eventlog requests.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox