Configuration
Download the latest build from here. To configure CPU Monitor simply uncompress the zip file using a command similar to the following on Linux and Unix
[dgiles@dgiles-uk
~]$ unzip
cpumonitor.zip
On windows use a utility such as winzip.
This will create a directory called cpumonitor, simply change into this directory and then into the bin directory.
[dgiles@dgiles-uk ~]$ cd cpumonitor
[dgiles@Doms-macbook-2 cpumonitor]$ ls
bin classes launcher
lib log source
[dgiles@Doms-macbook-2 cpumonitor]$ cd bin
[dgiles@Doms-macbook-2 bin]$ ls
README.txt
cpu.xml cpumonitor
cpumonitor.bat
You will need to edit cpu.xml to reflect your environment. It will look something like this
<?xml version
= '1.0' encoding = 'UTF-8'?>
<CPUMonitor
Title="Compute
Nodes" xmlns="http://www.dominicgiles.com/cpumonitor">
<MonitoredNode>
<HostName>localhost</HostName>
<Username>root</Username>
<Password>mypassword</Password>
<Comment>My
Computer</Comment>
</MonitoredNode>
</CPUMonitor>
Change the text in between the
“HostName” tags (currently localhost) to point
to the server you wish to monitor (hostname or ip address)
. Change the text between the “Username” tags
to a user with access to standard monitoring utilities such
as “vmstat”. This typically doesn’t
require any special privilege. Change the text between the
“Password” tags to the users password. You also
can change the text between the “Comment” tags
to anything you want displayed with the other details for
this computer such as “Database Server”,
“Application Server”, “LDAP Server”
etc.
You can also change the text between the “Title” tags to something more appropriate such as “ERP Server”, “Sun Oracle Database Machine” etc.
Simply repeat this process for multiple servers and your done. You should end up with something similar to this
<?xml version
= '1.0' encoding = 'UTF-8'?>
<CPUMonitor
Title="Production RAC
Cluster" xmlns="http://www.dominicgiles.com/cpumonitor">
<MonitoredNode>
<HostName>node1</HostName>
<Username>oracle</Username>
<Password>secretpassword</Password>
<Comment>RAC Node
1</Comment>
</MonitoredNode>
<MonitoredNode>
<HostName>node2</HostName>
<Username>oracle</Username>
<Password>secretpassword</Password>
<Comment>RAC Node
2</Comment>
</MonitoredNode>
<MonitoredNode>
<HostName>node3</HostName>
<Username>oracle</Username>
<Password>secretpassword</Password>
<Comment>RAC Node
3</Comment>
</MonitoredNode>
<MonitoredNode>
<HostName>node4</HostName>
<Username>oracle</Username>
<Password>secretpassword</Password>
<Comment>RAC Node
4</Comment>
</MonitoredNode>
</CPUMonitor>
After the config file has been loaded into cpumonitor it will encrypt any clear text passwords.
To start CPU Monitor simply type
[dgiles@dgiles-uk
~]$ ./cpumonitor
If you have multiple configurations you can use the -c command line option to to specify different configuration files i.e.
[dgiles@dgiles-uk
~]$ ./cpumonitor.jar -c applicationservers.xml