A server process template is a pre-defined reusable collection of processes. It provides an easy way to add multiple processes for monitoring across a group of servers. For example, if you want to monitor the 'init' process in all your Linux servers, you can configure a server process template for this process and apply the template across all your Linux servers. This is better than manually adding the 'init' process in your Linux servers one by one.
Under the Settings tab, click the Template Library option under the Discovery and Data collection table.
Under Process Templates, you can find Server Process Templates option.
Click on Add New to create a new template.
Specify Template Name and Description.
Click Add Process link to add processes for monitoring. You can either Manually Enter the Process Details or Choose Process Details from Available Servers.
If you want to receive notifications when the threshold values of the process attributes are violated, you have to Configure Alarms for Attributes. The attributes of the process will be listed on the left-hand side. Click the Associate link corresponding to the attribute to open the Configure Alarms screen.
You can apply your process and threshold configuration under the Associate Configuration to Monitors section. You can either apply the configuration to monitor types or choose from a list of monitors or apply to specific monitor groups.
Click Save Template to complete your server process template configuration.
Command & Arguments: F:\MySQL\mysql\bin\mysqld-nt.exe
Example One:
Process Name: java
Command & Arguments: java/root/jdk1.5.0_07/bin/java -server -Xms128m -Xmx128m -Dprogram.name=run.sh -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/root/JBoss/jboss-4.0.2/lib/endorsed -classpath /root/JBoss/jboss-4.0.2/bin/run.jar:/root/jdk1.5.0_07/lib/tools.jar org.jboss.Main
Example Two:
Process Name: mysqld-nt.exe
Command & Arguments: F:\MySQL\mysql\bin\mysqld-nt.exe mysqld-nt --defaults-file=..\my.ini -u root -b .. --tmpdir=..\temp --standalone --port=13326 --default-character-set=latin1
If the port or any other property changes often, you can just monitor the process using its name and command. Look at the command and arguments below for our recommendation w.r.t. the two examples above:
Process Name: java
Command & Arguments: /root/jdk1.5.0_07/bin/java
Process Name: mysqld-nt.exe
You can create a new Server Process Template, associate services and configure alarms for attributes from the Admin Server using the same steps as in the Managed Server. However, templates configured in the Admin Server can be applied to different monitor types and monitor groups, not to individual monitors.