When useing text log test I want to look for this line (the dates and times would change accordingly)
12/03/03 05:45am mrp-gen finished
if it finds this line it is a good thing. I don't want it to return a bad status. Therefor I am assuming I have to use a expression but cannot figure out how the expression should be written. I am assuming the expression
("mrp-gen") and not "finished"
my problem is my log entries are going to be
12/03/03 05:00am mrp-gen started
12/03/03 05:45am mrp-gen finished
Text Log File
Ok, but what the condition for "bad" status?if it finds this line it is a good thing. I don't want it to return a bad status.
Probably you want to set "bad" status when "mrp-gen started" appears and set "good" status when "mrp-gen finished" appears?
In this case (I think) you should setup 2 different tests:
- TestA will search for "mrp-gen started"
- TestB will look for "mrp-gen finished"
Also you need to assign alert profiles (e.g. profileA and profileB), profileA will disable TestA and enable TestB (you can use HMScript action for this purpose), profileB will enable TestA and disable TestB. And of course you can add some other actions to these profiles (e.g. send email action).
Regards
Alex