Text Log File

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
emartin
Posts: 1
Joined: Thu Dec 04, 2003 9:09 am

Text Log File

Post by emartin »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

if it finds this line it is a good thing. I don't want it to return a bad status.
Ok, but what the condition for "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
Post Reply