Home » Articles posted by Anders Bengtsson (Page 38)
Author Archives: Anders Bengtsson
Schedule Report to Update Every Hour
I saw a question about generating a report every hour for “the hour before”, that you can´t do out of the box. But I have a idea, why dont generate a report every half hour, for the entire day? That would give you a updated report every half hour, including the hour before, or as far as the data warehouse has processed data.
In this example I will use a generic performance report
- Open the Ops Mgr 2007 Console
- Go to Reporting (Ctrl+3)
- Expand Reporting and click Microsoft Generic Report Library
- Click Performance and then choose Schedule from the action menu
- The Subscribe to a Report wizard starts, at the Delivery page, input a description and choose a delivery method. In this example I will choose Windows File Share as delivery method. That will store my report to a file share on the network.
– File name, for example CPU Graph Today.pdf
– Path, for example \\servername\share
– Render Format, choose output format, PDF is nice
– Write mode, choose Overwrite
– User name and Password, inpute information about a account to use to write the report, then click Next - At the Subscription Schedule page, choose how often the report should be generated. I will choose Hourly and every 0 hours and 30 minutes. Choose when the subscription should start and then click Next
- At the Report Parameters page, choose
– Data Aggregation: Hourly
– From: Today 00:00
– To: 23:59
– Histogram: Daily by hours
– 3D Chart: True - At the Report Parameters page, click Change…
- In the Settings box, click New Chart
- In the Settings box. input chart title, for example CPU Graph Today
- In the Settings box, click New Series
- In the Settings box, click Add Objects, in the Add Object box, choose a item of the Windows Operating System type, click Add and then OK
- In the Settings box, click Browse
- In the Select Rule box, search for “processor” and choose “Processor % Processor Time Total” from available items, click OK
- In the Settings box, click OK
- At the Report Parameters page, click Finish
- Back in the console reporting part, click Scheduled Reports to see your new subscription.
As you can see in the report, the report are about one hour behind. If you generate the report at 23:30 the report will include data to 22:30. If you need for example performance data quicker than that, you can create a new performance view.
How to Create a Correlated Windows Event Unit Monitor
In this post I will show how to create a monitor that check for one event and if there is not another event within a specified timeframe minute from the first event, the monitor will generate an alert. I will reset the monitor with time, 3 minutes, but you can choose to reset the monitor with for example a third log event.
1. Start the console
2. Go to Authoring, expand management pack objects and click Monitors
3. Click Scope and select Windows Computer, click OK
4. Expand Windows Computers, expand Entity Health, right-click Availability and choose to create a new unit monitor
5. Create a unit monitor – Monitor Type: Choose Windows Events/Correlated Missing Event Detection/Timer Reset, click Next
6. Create a unit monitor – General: Input a name and a description, click Next
7. Create a unit monitor – Missing Event Log Name A: Input the event log name of the first event, click Next
8. Create a unit monitor – Build Missing Event Log Expression for A: Input event ID and event source, in my example it will be event id 1000 and event source EventCreate. Click Next
9. Create a unit monitor - Missing Event Log Name B: Input the event log name of the second event, click Next
10. Create a unit monitor – Build Missing Event Log Expression for B: Input event ID and event source, in my example it will be event id 2000 and event source EventCreate. Click Next
11. Create a unit monitor – Configure Correlation:
Correlation interval: 1 Minutes
Correlation Details: The last occurrence of A with the configured occurrence of B in chronological order
Click Next
12. Create a unit monitor – Auto Reset Timer: In my example I will specify 3 minutes, click Next
13. Create a unit monitor – Configure Health: Click Next
14. Create a unit monitor – Configure Alerts: Check “Generate alerts for this monitor” and then click Create
If I only get a event ID 2000 and no event ID 1000 there will be a alert. If I get event ID 2000 and event ID 1000 within 1 minute there will be no alert. You can change the correlation configuration in any way you want, for example in which order the events must be generated.
Script That Returns Performance Data
I have made a script that will search for a word in a logfile and send the result back as performance data to Ops Mgr 2007.
With default settings will the script look in the IIS log files (C:\windows\system32\LogFiles\W3SVC1\)Â for the last hour and search for the word “POST”. It will then return how many times that word is in the file as performance data.Â
To use this script you can create a new  Collection Rules/Probe Based/Script (Performance), paste the script into the “script box”, input suitable performance mapping information. If you change the “Value” (default $Data/Property[@Name=’PerfValue’]$) you must also change this in the script. Remeber to configure your IIS to generate a logfile for every hour, or modify the script.
I have configure my script to run every 70 minutes synchronize at 00:00. It will then run 10 minutes past every hour and tot up the hour before.
You can download the script here. Send me a e-mail if you have any feedback or suggestions.
Proxy Settings
Ops Mgr product team at Microsoft has made a tool to work with proxy settings in Ops Mgr 2007. With this tool you can easy browse proxy settings. A great way to for example very that all your domain controllers has the correct setting. Current version is 1.1.
You can download the tool here.
Script: Monitor Process
This is a script that will monitor if a process is running, and if it is running, for how long it has been been running. Default settings is monitoring notepad.exe and will generate a local event if it has been running for more than 15 minutes. You can implement this script with timed commands/execute a script
Download the script here
Overrides Explorer Utility
Boris Yanushpolsky in the Ops Mgr product team at Microsoft has made a tool to work with overrides in Ops Mgr 2007. With this tool you can easy browse overrides based on type or computer.
You can download the tool here , current version is 3.2

Monitor Scheduled Tasks with Operations Manager 2007
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:\Windows\SchedLgU. 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.
Links During July
- If you want to monitor SNMP v1 devices you can call to Microsoft and ask for the KB939364 fix. They will give it to you for free.
- Collection 3386: Implementing Microsoft System Center Operations Manager 2007, here
- Systems Center Operations Manager 2007 Documentation seems to have been updated, here
- Remote Operations Manager 2007 Deployment Guide, here
- OpsMgr 2007 MOM 2005 Backward Compatibility MP Update, here
- A updated version of Microsoft Windows Base Operating System MOM 2005 MP (7/11/2007), here
- A updated version of the Microsoft Web Sites and Services Management Pack for MOM 2005, here
- New MOM KB article, “You receive an error message when you try to deploy an agent update to a managed computer in Microsoft Operations Manager 2005“, here
- Keep an Eye on Your Servers with Operations Manager 2007, a article by Pete Zerger, read it here
- Disaster Recovery: OpsMgr 2007 Root Management Server on a Cluster, guide, read it here
- New KB “System Center Operations Manager 2007 cannot find some network devices by using the network device discovery process”, here
- New KB “You cannot deploy an agent by using the Discovery and Installation Wizard in System Center Operations Manager 2007”, here
Operations Manager 2007 and Data Protection Manager in collaboration
This document is a first look at System Center Data Protection Manager, how to use the product to backup Operations Manager and how to use Operations Manager 2007 to monitor Data Protection Manager.
Download the article here
Active Directory and Exchange Management Pack Shared Script Mappings
I want to inform you about some great information that was recently uploaded to Systemcenterforum.org.
This download contains two Excel spreadsheets containing the shared script mappings for the Active Directory and Exchange management packs, including script name, monitors and rules using the script, as well as object type targeted. Tables list only scripts used by more than one workflow.
Download the file here
Recent Comments