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 wildcard
Value = warning
click 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.
Microsoft IT Forum in Barcelona
Counting Devices
Installing the Service Manager Authoring Tool
[…] Monitoring custom text log file with SCOM 2007 Hi Zeljko, Please take a look at http://contoso.se/blog/?p=174 —– Regards Anders Bengtsson Microsoft MVP – MOM http://www.contoso.se Z> Hi@All, Z> […]
[…] You can then run the complete command from a Timed Commands/Execute a command rule. You can then create a Alert Generating Rules/Event Based/Generic Text Log (Alert) rule to monitor that ftp_log.log file. In this post you can read how to setup a rule to check a logfile. Your ftpscript.ftp file can look like this […]
[…] I saw a question today about monitoring scheduled tasks with Operations Manager 2007. If you open the scheduled task window (start menu > all programs > accessories > system tools > scheduled tasks) you can open a logfile for your scheduled jobs, from the Advanced drop down menu, the default file is C:WindowsSchedLgU. You can monitor this file from Ops Mgr 2007, and search for words like WARNING and ERROR. In this post you can read how to setup monitoring of a logfile like that. […]