Web interface

From Proview Wiki
Jump to: navigation, search

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