|
This section is common to all the editions of IT360 - Professional Edition, Enterprise Edition [Probes only] and MSP Edition [Probes only].
Actions of type, Execute MBean Operation, can be created, to invoke operations on MBeans of JMX Compliant Resources. The JMX compliant resources that are supported by IT360 are;
Creating a MBean Operation would be helpful, if you want to monitor the value of any custom attribute, and do any action, based on its value.
For e.g., if you want to shut down your JBoss server, when the number of threads running in it goes above a specified value, you can add the necessary code to the shutdown the server, on the JBoss Montor side, as a MBean operation and invoke this as a MBean Operation action, from IT360.
In order to execute a MBean operation, follow the below steps;
Go to 'Admin --> Servers & Applications' and click 'Actions'.
Now, by following a simple set of 4 steps, you can create a MBean Operation;
First Step: Enter the below details;
Enter the Display Name for the action.
If you have a JMX compliant monitor, already configured, it will be listed in the Monitor Combo box. Choose the required monitor.
If you do not have any monitor configured, use the Add Monitor link given, to discover a new monitor. It takes you to the Add Monitor of type page.
Second Step: The list of domains, present in the agent you have selected, are displayed. Select any of the Domains and click on the button Show MBeans.
Third Step: Select any one of the MBeans, for which you want to create the action, and click Show Operations.
Fourth Step: All the MBean Operations are listed in this screen ,with varying return types and arguments. Click Create Action button, for the operation for which you want to create this action. A success message that you have created this action would be displayed, and the newly created action will be listed under the head Execute MBean Operations Action(s).
|
Note: You can give multiple values to the operation arguments, as comma separated values. For an operation with multiple arguments, the combinations of the values supplied, can also be executed. This is done in order to ensure that we need not create separate actions to represent different combinations of argument values. For Example, if you want to create actions for the logging level of a product, the operation change logginLevel may take two arguments as, "User" and "Level". You can supply, Admin and Operator as values for User and debug, respectively, and info for Level. You can execute the operation manually, by choosing any of the combinations using the 'Manual Execution' option. By default, the first values given will be taken to execute the action, as Admin and debug, in the above example. Passing multiple values can be further enhanced by using Replaceable Tags. |
After creating the MBean Operation action, you will be directed to the the 'View Actions' page, where you can test the execution of that action in two ways;
You can have a trial execution of the action.
To do so, click the Execute
icon
of that action.
You can also manually execute the action, by clicking on
. This opens a popup, with the operation details. Select the
options from the list and click Execute
Action button. The action would be called with the given values,
and return value will be given in the UI.
Note: You can also perform the below tasks from the 'View Actions' page;
Edit the action, by clicking the
icon.
You can click Add New, for creating more actions.
|