.
Table of Contents
Before starting JIMS, there should be set JAVA_HOME environmental variable:
$exportJAVA_HOME=/opt/java1.5
The variables can be put into /etc/default/jims or /etc/java/java.conf file, which are both "sourced" during JIMS startup. Example configuration of /etc/default/jims is shown below:
exportJAVA_HOME=/opt/java1.5
Configuration files are placed in
$JIMS_HOME/jims/etc
directory. It is necessary to configure only one file
site.cfg.
The GW and HTTP environment variable should be set to the value that is returned by the 'hostname' command. The GW tells JIMS which agent is the 'master' agent, and the HTTP variable tells JIMS whether to start the HTTP service with the repository of modules. The repository is used by the agent (and potentially other agents) to load the modules from remote location. In our case the repository is located on the same node as the JIMS agent is started.
We can verify the operation of HTTP server and the JMX WS connector after JIMS startup by issuing the telnet command for the target host and following ports (respectively for HTTP repository and the JMX WS connector):
$telnetaccess7701$telnetaccess7702
We can also use the browser to check whether the service has started successfully: http://access:7701 http://access:7702/jims-jmxws
Important notice: allowing UDP in general is not enough - the procedure above is required because it is required to allow UDP multicast traffic explicite.$iptables-A INPUT -s w.x.y.z/255.255.255.0 -d 224.224.224.224 -i eth0 -p udp -j ACCEPT
We can verify the configuration by connecting to JIMS system using the commandline console. Assuming that 10.0.128.9 is the public IP of access node with JIMS agent up and running, we can test the configuration as follows:
$jims-cliJIMS CLI v. 3.0.0, type "help" for helpJIMS>connect 10.0.128.9Connection prepared for: 10.0.128.9JIMS>list[01] 10.0.128.1[02] 10.0.128.9JIMS>cpuTIME/CPU0,1,... USER NICE IDLE SYSTEM [hs/s]:[01] 10.0.128.1: 2[0 2] 0[ 0 0]2051[1028 1023] 3[0 3][02] 10.0.128.9: 2[7 14] 0[ 0 0] 198[ 93 86] 0[0 0]JIMS>quit