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 this article which will help you to understand what is Tibco Hawk Monitoring and the terms which I used here in the post.
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 Micro Agent for each EMS server you have. Read the article to configure the same if you don’t know how to do it.
Creating Rule base in HAWK
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.
Creating Rules
Click on the Create icon to create a new Rule and provide a unique name for your Rule Base. Please be aware that Rule Base names must be unique.
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.
Creating Test Cases in Hawk Rules
As the next step, we need to create the Test Cases. 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.
Creating Actions in Hawk Rules
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.
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.
True Test Counters in Hawk Rules
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.
Hi, Thanks for sharing above information in the first place.
Could you please let me know how to launch/connect to hawkdisplay/GUI from a Linux machine also please share more information’s on how hrb files are generated & it’s significance, can we setup hawkmonitoring for EMS without a hawkdisplay ? . Thank you in advance.
HI Ricky, I hope you are talking about your personal machine with a GUI. in that case you just need to run the tibhawkdisplay script which located under your hawk bin directory with appropriate tra file and config file. The HRB files are automatically generated while we configuring the monitor rule in hawk display. Yes you can create hawkmonitoring with out hawk display. the hrb files is just an XML file with the conditions we are adding. I never tried that as its easy to use the GUI rather than creating the hrb file manually.