31.Dec.2009 |
by Gusac |
Filed in: Windows
While working on Windows 2008 SP2 I came across a situation where we needed to configure Data Collector Set (Perfmon) and wanted it to trigger an email when the values for certain object reach a predetermined threshold. All went well, except the logs just won't start automatically after the reboot! We tried it on Windows 2003 and Windows Vista. It works fine, the perfmon logs get started automatically after system restart but not on Windows 2008 server.
Next, we tested with Windows 2008 SP2 R2 server and even it did start the perfmon logs automatically. So the problem was on the Windows 2008 server only. I searched and searched but could not find anything. The other option availabe was to reconfigure the logs using logman.exe but that too did not promise to resolve our issue. So here is what we did:
We configured the Data collector set, the way normally do in MMC and then created a startup entry to start the data collector using command line. The command line to start the data collector set is:
Logman start <data collector set name>
You can put this command in the following registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Value name: Startlog (could be any name that you want)
Value type: REG_SZ
Value data: Logman start <data collector set name> (<data collector set name> should be the log name that you created)
Update: Created the blog entry at: http://winplat.net/post/Data-collector-set-does-not-run-at-system-start-up.aspx