Jul 23, 2010

Cross Platform e-learning course on TechNet.

As we all know is SCOM R2 capable to monitor non-Microsoft environments (aka Cross Platform). However, many of us are Windows oriented so managing non-Windows environments with SCOM R2 can be a challenge. In order to address this issue a website has been launched by Microsoft which contains an e-learning course about SCOM R2 and managing Cross Platform environments. This site is available for some months already but many people do not know about it.
Therefore, go check it out and learn. A good site it is. Many new things to be learned.
image
Website to be found here.

All OpsMgr EventIDs at a glance

Daniele Muscetta has created an Excel Spreadsheet which contains ALL OpsMgr events and their description
 image
A great resource it is! To be found here.

Jul 20, 2010

Twitter you alerts with SCOM 2007 R2

Thinking about ways to be notified by OpsMgr we where talking about Twitter this afternoon, can SCOM twitter alerts and state changes and what can be the use. Why do we want to use twitter to be notified?
One thing was clear in a sec it would be cool to let SCOM twitter in the first place! Second of all Twitter is fast and you just need a internet connection. But you don’t want everybody to read your alerts, warnings with domain names and ip addresses will expose company data to everyone to see, but if you protect your Twitter account where you have to accept your followers you can manage the alert receivers. So think about the security risk before you let SCOM Tweet your alerts.



What can be nice is to create multiple twitter accounts and subscription channel to Twitter for just the exchange admin’s or de AD guys to get the alerts fast and don’t have the SCOM console open all day (every phone has an Twitter app so no problem there).
So how can i make my SCOM 2007 R2 Twitter alerts?
It’s not really difficult to do so you got to have internet access a Twitter account with password and cUrl.
You have to obtain cUrl from the following location for you system, both x64 and x32 are available here so choose the one you need.
Copy cUrl into you c:\windows\system32 directory and cUrl will be available.
I’ve created a Twitter account wwwally_OpsMgr with a password which in the example will be password.
First test from a command line if cUrl is working from you SCOM RMS server to make sure it will works.
cmdcurl
curl --basic --user wwwally_OpsMgr:password --data status="I'm twittering from #SCOM!!" http://twitter.com/statuses/update.xml
If your response looks like this your all set to go!
cmdcurloutput
Now you can start creating the SCOM Twitter Channel which you can use to tweet you alerts.
In the OpsMgr console open the Administration pane and navigate to Notifications / Channels and create a new channel.
curlchannel
In the settings pane of the command notification channel wizard use the following settings:
  1. In the Full path use: C:\windows\system32\curl.exe
  2. In the Command line parameters use: --basic --user wwwally_OpsMgr:password --data status="$Data/Context/DataItem/AlertName$!" http://twitter.com/statuses/update.xml
  3. In the Startup folder use: C;\windows\system32
  4. Click Finish to create the notification channel.
Now your done setting up the Twitter notification channel and you can start connecting it to the subscriptions.
For more information on how to create the subscription and subscribers have a look at: http://technet.microsoft.com/en-us/library/dd440890.aspx

How to monitor new line entries in a log/text file

You may wish to monitor any new entry in a log/text file and want to get an alert generated no matter what the entry is. Usually we want an alert to be generated once a word or expression is logged, but in this post I will be shedding lights on monitoring a log file and generate an alert when any new entry is logged in the log/text file.


  • Open OpsMgr Console and go to Authoring—> Management Pack Objects—> Rules
  • Click on “Scope“ button in the tool bar to narrow down our selection.
  • I assume the file is located on a windows computer, so we will search for “Windows Computer”
  • Select Windows Computer and then click Ok
clip_image001
  • Right click on rules and select “Create a new rule”
  • Expand Alert Generating Rules—>Event Based—>Generic Text Log(Alert)
clip_image001[5]
  • In the above window click new to create a new management pack to save this new rule in it. In my case I have created a management pack called “TestRuleMP”
  • In the next screen, give a meaningful name to this rule.
  • The Rule Target should be Windows Computer
  • Make sure to to uncheck the option “Rule is enable” before you proceed
clip_image001[7]
  • In the next screen provide the pattern of the file. If the file name is fixed and not changing every time the file is created, then you may give the exact name of the log as LogName.txt  but if the log file name is changing every time is created (LogFileName01, LogFileName02, etc..) then you may put the log file name as the following: LogFileName*.txt and then click next
clip_image001[11]
  • Now it is time to set your event expression to generate the alert .
  • Click Insert so a new line will be added.
  • In the parameter name write: Params/Param[1]
  • In the operator select "Match wildcard”
  • In the value put “?” – without quotes
clip_image001[13]
  • Proceed to configure the alert as the following:
A new Entry was detect in the c:\log\bader.log
Logfile Directory : $Data/EventData/DataItem/LogFileDirectory$
Logfile name: $Data/EventData/DataItem/LogFileName$
String:  $Data/EventData/DataItem/Params/Param[1]$

clip_image001[15]
  • Once you are done with editing the alert, click create.
  • We have not enabled the rule yet so we need to override the rule and just enable it for a specific computer on which the log is located

clip_image002
  • To reproduce the alert, I opened the log file and I typed a new line in it and saved the changes. See the below screenshot
clip_image001[17]
  • Now the alert is generated
clip_image001[19]

You can notice that the alert description includes the new entry which was logged in the log file

Jul 19, 2010

Download links for the 88 files that System Center Configuration Manager needs during install

When installing System Center Configuration Manager (SCCM aka SMS v4), it is not always possible to give internet access to the server involved. I like to have everything I need beforehand whenever doing an install.

When SCCM setup launches, it tries to download the ConfigMgr.Manifest.cab from here. Overall it is best to allow SCCM to grab all the files it needs automatically because the ConfigMgr.Manifest.xml file inside the ConfigMgr.Manifest.cab file can be updated by Microsoft to point to new locations when these files are updated or moved.


With that said, here are the links contained in ConfigMgr.Manifest.XML as of 12-15-07 for the RTM release of SCCM 2007, broken into groups:

Microsoft Remote Differential Compression Library
(x86, x64, ia64)

Windows Update Agent
(x86, x64, ia64)

WMI
(x86, x64, ia64)

BITS
Windows 2000 - KB 842773
(ARA, CHS, CHT, CSY, DAN, DEU, ELL, ENU, ESN, FIN, FRA, HEB, HUN, ITA, JPN, KOR, NLD, NOR, PLK, PTB, PTG, RUS, SVE, TRK)

Windows 2003 - KB 923845
x86: (CHS, CHT, CSY, DEU, ENU, ESN, FRA, HUN, ITA, JPN, KOR, NLD, PLK, PTB, PTG, RUS, SVE, TRK)
x64: (CHS, CHT, DEU, ENU, ESN, FRA, ITA, JPN, KOR, PTB, RUS)
ia64: (DEU, ENU, FRA, JPN)

Windows XP - KB 923845
x86: (ARA, CHS, CHT, CSY, DAN, DEU, ELL, ENU, ESN, FIN, FRA, HEB, HUN, ITA, JPN, KOR, NLD, NOR, PLK, PTB, PTG, RUS, SVE, TRK)

Save all of those files into a directory, and simply point SCCM to that directory for the updates instead of attempting to download them all.

The report server is not responding. Verify that the report server is running and can be accessed from this computer

After changing the websitename, hostheader or computername of a Microsoft Reporting Services Server, you get the error: The report server is not responding. Verify that the report server is running and can be accessed from this computer. 

This error occurs, because the UrlRoot element in the RSReportServer.config is not changed automaticly, when you change your computername or website hostheader.
Open the RSReportServer.config in the folder: C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer
Change the UrlRoot element to the correct name
Open RSWebApplication.config file and, if necessary, modify the ReportServerUrl setting to reflect the new server name. Note that this setting is not used in every installation. If it is empty, do nothing.
For example in: C:\Program Files\Microsoft SQL Server\MSSQL.#\Reporting Services\ReportServer open
RSReportServer.config
old value:
http://reportserver
new value:
http://reportserver
For example in: C:\Program Files\Microsoft SQL Server\MSSQL.#\Reporting Services\ReportManager open
RSWebApplication.config
old value:

ReportServer
new value:
http://reportserver

Note: It’s very important that only one of the two values is filled, else an error will occur.
Run iisreset /noforce and you’re now using multiple instance of Reporting Services on the same machine.

Jul 13, 2010

World Wide Web Publishing Service Missing

Start --> run --> cmd --> Regedit --> Expand and right-click HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION\SVCHOST and modify allow Full Access for administrator. Then uninstall and reinstall IIS.