找到一篇关于Monitoring txt log file in SCOM 2007, 比较简单, 稍后会测试一下。
I saw a question about monitoring a logfile with Ops Mgr 2007. Here is a short step by step guide
In the console, under Authoring, Management Pack Objects, Rules, create a new rule
Choose to create a Alert Generating Rules/Event Based/Generic Text Log (Alert), click next
Input a rule name and choose rule target, click next
Input a directory, for example C:\, input a pattern, for example logfile.log, click next
Input the following expression,Parameter Name = Params/Param[1]Operator = Matches wildcardValue = warningclick next
Configure a suitable alert and then click create
Please note that this rule is case sensitiv, so it will make difference between WARNING and warning.
没有评论:
发表评论