Users Online
· Members Online: 0
· Total Members: 188
· Newest Member: meenachowdary055
Forum Threads
Latest Articles
Articles Hierarchy
How to set up Tibco Hawk monitoring for EMS server
In this post, I am going to explain how to set up an EMS monitoring to alert us when the EMS server is not accessible or when it goes down. Please read the below articles which will help you to understand the terms which I used here in the post.
https://techieswiki.com/an-introduction-to-tibco-hawk-monitoring-for-beginners.html
To set up Hawk Monitor for EMS, first, we need to configure the EMS micro agent as it is not bundled with the hawk installation. You need to configure this microagent for each EMS server you have. Read the article to configure the same if you don’t know how to do it.
https://techieswiki.com/how-to-configure-tibco-ems-microagent-to-monitor-ems-using-hawk.html
Once you set up the EMS microagent, start the hawk display for the domain. Once the hawk display is started, right-click on the Agent name and select Get Configuration -> Rulebases. This will open a new window.
Now click on the Create icon to create a new Rule a give a name for your Rule Base. Note that the RULE BASE names are unique.
Hawk Rule Base Editor
Click on Create button to select a data source for the rule base. Data Sources are the microagent for the hawk rule. In this case, we need to select the EMS microagent. When we click on the microagent, it will list out all the methods available. For this rule, we need to select the isRunning method and we need to specify the time interval for executing the same method. In this e.g, I set the time interval as 60 Sec, so the method will try to connect to the EMS in every 60 Sec and return the status.
Hawk Rule Base Data Source & Method
Now we need to create the Test Case. This test case decides what action needs to take depends on the output returned by the method we selected. To create the test cases, click on the Create button and it will open the Test Editor window. Click on the EDIT button and it will open Test Builder Window. Select the parameter and operators based on your need and click OK.
Now click on the create button for Action Editor window. This part decides what action needs to take place when the specified conditions are met. There are different types of action item which we can select.
Hawk Rule Base Actions
As you see in the alert type, there are 6 different options which we can select based on our need. I will explain each item in details in another session. For this rule, I am selecting the Alert option. For this option, we need to specify the Message and alert level. For the message, we can use the insert button to use internal or external variables or we can give a custom message as well.
The alert level is just used for viewing purpose. i.e each of them have a predefined colour code. Red for Alert High, Orange for Alert Medium and Yellow for Alert Low. Now Click OK button to save the changes and it will close the Action Editor window. Now we need to specify the clear condition for the rule. i.e we need to specify when we need to remove this alert. For that click on the Advanced button on Test Editor window.
Hawk Rule Base Clear Condition
True Test Counter is set to check the number of times the test condition needs to pass before it performs the alert condition. i.e If we specify the true test counter as 3, it will alert only when the test condition returns the same result in 3 runs.
Same way Clear condition is set to reset the true test count to zero. In this example, I set the clear condition as First False so that the true test counter set back to zero as soon as the isRunning method returns true.