Leo Arrubio Posted October 11, 2019 Posted October 11, 2019 Hi Experts, I'm trying to create a hawk rule to raise an alert if it detects that the status of an application is unreachable. My plan was initially to look in the Hawk logs of the tea agent, however i can't find a string that identifies an application to be in an unreachable state.
ChengHao Chen 3 Posted October 15, 2019 Posted October 15, 2019 Hello There, It's different from BW5, not Hawk reports the application status to TEA in BW6. Therefor you cannot find such a string in Hawk.log. Here are two ways to get the application status in BW6: Way1: Use "bwadmin show" command Way2: Use REST API Basic idea is: Write a shell script using the command to check the application status Save the results to file In hawk rulebase, rule1 invoke the shell script via custom:execut, rule2 monitor the output file use logfile:onNewLine Please let me know if any further questions Thanks Chenghao
Leo Arrubio Posted October 21, 2019 Author Posted October 21, 2019 Thanks for the reply. I was really hoping to find it in a log file, and not have to execute a command for it. Guess, i won't be able to then.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now