<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>teknoglot: &#187; Errors</title>
	<atom:link href="http://www.teknoglot.se/tag/errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.teknoglot.se</link>
	<description>Techspeak for the socially diminished</description>
	<lastBuildDate>Wed, 28 Sep 2011 07:37:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SNMP GET Errors in OpsMgr EventLog</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/snmp-get-errors-in-eventlog/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/snmp-get-errors-in-eventlog/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 21:28:07 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Management Pack]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[TroubleShooting]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=306</guid>
		<description><![CDATA[I&#8217;ve been building a little SNMP Management Pack in the past few days to discover and monitor a bunch of PowerWare UPS&#8217;s, which turned out to take quite a lot more energy and time than expected. Mostly due to the facts that I am really bad with SNMP and how it works, I&#8217;ve never really [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been building a little SNMP Management Pack in the past few days to discover and monitor a bunch of PowerWare UPS&#8217;s, which turned out to take quite a lot more energy and time than expected. Mostly due to the facts that I am really bad with SNMP and how it works, I&#8217;ve never really looked into the inner working of building an SNMP management pack and also because we ran into a couple of errors preventing the discovery process to work alright.</p>
<p>To make it clear right away, this is not going to be a &#8220;Building an SNMP Management Pack Tutorial&#8221; since there&#8217;s plentiful good ones out there already, and to be extra helpful I&#8217;m gonna include a few links right away:</p>
<ul>
<li><a title="SNMP Setup and Simple Custom SNMP Discovery" href="http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexID/66140/Default.aspx">SNMP Setup and Simple Custom SNMP Discovery</a> &#8211; Pretty much the basics</li>
<li><a title="SNMP Management Pack Example: NetApp Management Pack for SCOM 2007 R2 part 4" href="http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexID/58919/Default.aspx">SNMP Management Pack Example: NetApp Management Pack</a> &#8211; Part 4 actually, but has the links to the other parts</li>
<li><a title="Creating SNMP Probe Based Monitors" href="http://www.systemcentercentral.com/Details/tabid/147/IndexID/58815/Default.aspx">Creating SNMP Probe Based Monitors</a> &#8211; No custom discovery, but a good and simple guide to SNMP Probes</li>
</ul>
<p>It&#8217;s the second, the NetApp one, I&#8217;ve used as a guide to building the UPS management pack since it goes through the process of building your own filtered discovery using SystemOID to identify your hardware-classes and then building the monitors on top of those.</p>
<h2>Let&#8217;s get to it</h2>
<p>When building the discovery of my hardware classes I ran into problems. The discovery simply did not work. At first I got some strange errors about &#8220;invalid queries&#8221;, something that turned out to be related to me reading two guides&#8211;seriously though, pick one guide that is closest to what you want to achieve and stick to it&#8211;and mixing up the XPathQuery variables. Silly me.<br />
I got those errors to go away and I was able to get a few objects to my base-class, but none of the hardware classes who was populated through the return value of an SNMP OID got discovered.<br />
The only error I got this time was the following:<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: small;"><span style="line-height: 18px; white-space: pre;"><br />
</span></span></p>
<pre class="brush: plain; title: ; notranslate">Log Name:      Operations Manager
Source:        Health Service Modules
Date:          2010-09-02 11:19:12
Event ID:      11001
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      CENSORED
Description:
Error sending an SNMP GET message to IP Address XX.XX.XX.XX, Community String:=CENSORED, Status 0x6c.

One or more workflows were affected by this.

Workflow name: CENSORED.MP.CLASS.DISCOVERY
Instance name: CENSORED_DEVICENAME
Instance ID: {5C7EFB30-D885-8843-0DD7-EA86B4FD2311}
Management group: CENSORED
</pre>
<div>I went through all the other logical steps of troubleshooting an error like that which include double-checking firewall settings, OIDs, IP-addresses, allowed hosts and so forth. It wasn&#8217;t until I loaded the <a title="EATON Protocol Library" href="http://www.networkupstools.org/protocols/eaton/">PowerMIB</a> into a MIB Browser installed on the proxy machine (in this case a Management Server) I realized that there was no problem sending an SNMP GET to the UPS from that server. I launched Wireshark and had it listen to SNMP traffic between the UPS and the Management Server. The thing that struck me right-away was the fact that I could see the a bunch of &#8220;SNMP Get-Request&#8221; but no &#8220;SNMP Get-Response&#8221; which means that Operations Manager did send an SNMP GET but there was no response.</div>
<div>After a bit of intense staring i noticed what you see in the screenshot.</div>
<div></div>
<div><img class="alignnone size-full wp-image-307" title="SNMP Error in Wireshark" src="http://www.teknoglot.se/wp/wp-content/uploads/2010/09/snmp_error_wireshark.png" alt="SNMP Error in Wireshark" width="622" height="138" /></div>
<div>
</div>
<div>For some reason Operations Manager does not care about what SNMP version you configure when you do the initial discovery of a network device. Even if you do specify SNMP v1, you probes may very well be using SNMP v2c instead and in many cases that will result in these SNMP GET errors in the Operations Manager event log.</div>
<div>To avoid this, you haves to specify which SNMP version to use in your System.SnmpProbe according to the information provided here: <a href="http://msdn.microsoft.com/en-us/library/ee809331.aspx">http://msdn.microsoft.com/en-us/library/ee809331.aspx</a></div>
<div>Since I am such a nice guy, here&#8217;s an example of the working probe with the added line highlighted.</div>
<div>
<pre class="brush: xml; highlight: [4]; title: ; notranslate">
&lt;IsWriteAction&gt;false&lt;/IsWriteAction&gt;
&lt;IP&gt;$Config/IP$&lt;/IP&gt;
&lt;CommunityString&gt;$Config/CommunityString$&lt;/CommunityString&gt;
&lt;Version&gt;1&lt;/Version&gt;
&lt;SnmpVarBinds&gt;
	&lt;SnmpVarBind&gt;
		&lt;OID&gt;1.3.6.1.4.1.534.1.1.1.0&lt;/OID&gt;
		&lt;Syntax&gt;0&lt;/Syntax&gt;
		&lt;Value VariantType=&quot;8&quot;&gt;&lt;/Value&gt;
	&lt;/SnmpVarBind&gt;
	&lt;SnmpVarBind&gt;
		&lt;OID&gt;1.3.6.1.4.1.534.1.1.2.0&lt;/OID&gt;
		&lt;Syntax&gt;0&lt;/Syntax&gt;
		&lt;Value VariantType=&quot;8&quot;&gt;&lt;/Value&gt;
	&lt;/SnmpVarBind&gt;
	&lt;SnmpVarBind&gt;
		&lt;OID&gt;1.3.6.1.4.1.534.1.1.3.0&lt;/OID&gt;
		&lt;Syntax&gt;0&lt;/Syntax&gt;
		&lt;Value VariantType=&quot;8&quot;&gt;&lt;/Value&gt;
	&lt;/SnmpVarBind&gt;
&lt;/SnmpVarBinds&gt;
</pre>
<p>That&#8217;s it. Working perfectly now.</p>
<p>Best of luck to you too.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/snmp-get-errors-in-eventlog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ESENT Error When Modifying OpsMgr Agent</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/esent-error-when-modifying-opsmgr-agent/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/esent-error-when-modifying-opsmgr-agent/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 09:34:17 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Installer]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/ms/opsmgr2007/esent-error-when-modifying-opsmgr-agent/</guid>
		<description><![CDATA[Getting “ESENT Kerys are required to install this application” when you are trying to modify/change an agent installation? This seems to be  most common on Windows 2008 and i guess it’s because of the UAC and the fact that opening the Control Panel isn’t running in administrative mode. To work around this you need to [...]]]></description>
			<content:encoded><![CDATA[<p>Getting “ESENT Kerys are required to install this application” when you are trying to modify/change an agent installation?</p>
<p><a href="http://www.teknoglot.se/wp/wp-content/uploads/2010/03/image.png" rel="lightbox[260]"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="image" src="http://www.teknoglot.se/wp/wp-content/uploads/2010/03/image_thumb.png" border="0" alt="image" width="368" height="172" /></a></p>
<p>This seems to be  most common on Windows 2008 and i guess it’s because of the UAC and the fact that opening the Control Panel isn’t running in administrative mode.</p>
<p>To work around this you need to run the msiexec command on the correct installation GUID from an administrative command prompt.</p>
<p>Besides running through the registry to find the GUID, one of the easier ways is this:</p>
<ol>
<li>Open an administrative command prompt.</li>
<li>run <strong>wmic product</strong></li>
<li>Locate your product by its name, the GUID (looks a bit like this {25097770-2B1F-49F6-AB9D-1C708B96262A}) directly after that is the one you want. Copy it.</li>
<li>run <strong>msiexec /i &lt;PASTEYOURGUIDHERE&gt;</strong></li>
<li>Modify the agent as pleased</li>
</ol>
<p>That’s pretty much it. Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/esent-error-when-modifying-opsmgr-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Delete Files with Long Paths?</title>
		<link>http://www.teknoglot.se/ms/cannot-delete-files-with-long-paths/</link>
		<comments>http://www.teknoglot.se/ms/cannot-delete-files-with-long-paths/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 08:39:17 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=171</guid>
		<description><![CDATA[What do you do when you cannot delete a file or folder on a windows server? Check the file permissions! And if that doesn’t help? Check the share permissions! Yes, if it is a shared folder. And if that doesn’t help? Check the file ownership! Great! But then what? Well, the file could be in [...]]]></description>
			<content:encoded><![CDATA[<p>What do you do when you cannot delete a file or folder on a windows server?</p>
<p>Check the file permissions! And if that doesn’t help?</p>
<p>Check the share permissions! Yes, if it is a shared folder. And if that doesn’t help?</p>
<p>Check the file ownership! Great! But then what?</p>
<p>Well, the file could be in use, and then you would have to shut the locking process down and perhaps kick a user out. In a really bad scenario it could also be a symptom of a broken filesystem, a reserved filename (like “lpt1” or “PRN”) or even an invalid name (silly things like a space in the beginning or the end of a filename).<br />
Another possible reason could actually be that the path to the file or folder is too long. You won’t actually get an error telling you that the filepath exceeds the 255 characters Windows can handle but a simple “Acces Denied”.</p>
<p>There are some, more or less tedious, work-arounds for the problem. Like renaming, starting from the root, all the directories to shorter ones or using the old DOS (8.3, like “dokume~1.doc”) names that windows can auto-generate for you. Personally, I have two favourite ways of handling this.</p>
<ol>
<li>Map the parent-directory of the file/folder you are trying to access/delete as a network drive and access your files that way.<br />
This is particularly useful if the folder you are trying to access a <acronym title="Distributed File System">DFS</acronym>-share or perhaps a share on the central fileserver filepaths like “\servername01Central ProjectsCentral ServicesIT DepartmentDevelop Methods for Automatically Deploying New Central Servers2.2.1 Auto-Deploying SQL-Server 2005 ClusterDocumentsPreparationsWhitepapersSQL Server 2005 Failover Clustering White Paper.doc”</li>
<li>Create a new share to a folder further down the hierarchy. This works locally too if you are logged on to, say, SRV01, you create a new share on “D:FilesharesCentral ProjectsCentral ServicesIT DepartmentDevelop Methods for Automatically Deploying New Central Servers” called “Autodeploymethods” and access it from “\SRV01Autodeploymethods”. That way the filepath doesn’t exceed 255 characters.</li>
</ol>
<p>Now. When designing fileservers, you really should think about how deep the filepaths may get. This is especially true on DFS-shares since you might have to deal with the full <acronym title="Fully Qualified Domain Name">FQDN</acronym> too, and not only the actual folder structure. Many big corporations I know uses “codes” for departments and assign a project ID (quite simply a number or maybe an abbreviation) to each project and uses theese for the fileshares too. Another scenario that could lead to similar problems are intranet sites where users can create and manage their own subsites and where filenames and folders are not stored in a database.</p>
<p>I have only seen this phenomena on Windows systems so far, and I’ve actually used a linux Live-CD on occasion when admin access is denied.</p>
<blockquote><p>Read More:<br />
<a href="http://support.microsoft.com/kb/320081">http://support.microsoft.com/kb/320081</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/cannot-delete-files-with-long-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Health Rollup not working in Exchange Management Pack</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/health-rollup-not-working-in-exchange-management-pack/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/health-rollup-not-working-in-exchange-management-pack/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 11:17:08 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Management Pack]]></category>
		<category><![CDATA[TechNet]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/ms/opsmgr2007/health-rollup-not-working-in-exchange-management-pack/</guid>
		<description><![CDATA[I’ve wrestled a bit with a critical status on one of the Organization States at a clients site that wont go back to green despite all the underlying monitors have gone back to green. And apparently I am not alone on this one. Others, like me, has read and re-read the MP-guide i search for [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve wrestled a bit with a critical status on one of the Organization States at a clients site that wont go back to green despite all the underlying monitors have gone back to green. And apparently I am not alone on this one. Others, like me, has read and re-read the MP-guide i search for a monitor/rule/discovery for overrides forgotten, and I don’t know how many times I’ve made a small change and tried resetting the health once again. Anyhow.   <br /><a href="http://social.technet.microsoft.com/Profile/en-US/?user=Marius%20Sutara&amp;referrer=http%3a%2f%2fsocial.technet.microsoft.com%2fForums%2fen-US%2foperationsmanagergeneral%2fthread%2f6ad11b81-3304-40db-ae47-0f36add6e1e1&amp;rh=EQRzBI2S0js0uB72HghHQFW%2bBWkNhiVEQ9pGFs3h9c0%3d&amp;sp=forums">Marius Sutara</a> posted an <a href="http://social.technet.microsoft.com/Forums/en-US/operationsmanagergeneral/thread/6ad11b81-3304-40db-ae47-0f36add6e1e1">answer on TechNet forums</a> last week with a “fix” (-ish), or rather the acknowledgement that the problem is not a <acronym title="AKA. Human Error, 40cm from the screen">40c</acronym>. The problem might be related to other MP as well, but I’ve only seen it on the new Exchange MP so far. In that same post, Pete Zerger provided some links to two nifty little tools that will help you reset the health of the monitor.</p>
<p>In case you wonder why on earth I post when there’s allready a “solution” out there; Pagerank, baby!   <br />Not for me, but for the forum post making it show up earlier on google.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/health-rollup-not-working-in-exchange-management-pack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The TCP Port Check: Use with caution!</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/tcp-port-check-use-with-caution/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/tcp-port-check-use-with-caution/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:39:43 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=202</guid>
		<description><![CDATA[Just wanted to raise a word of caution about the TCP Port Check in Operations Manager 2007. Some customers have notices the the system-logs on some Unix machines are completely swamped with &#8220;connection error&#8221;, &#8220;TCP Connect failed&#8221;, &#8220;TCP Session Lost&#8221; and similar and after a bit och research the problematic servers were narrowed down to [...]]]></description>
			<content:encoded><![CDATA[<p>Just wanted to raise a word of caution about the TCP Port Check in Operations Manager 2007.</p>
<p>Some customers have notices the the system-logs on some Unix machines are completely swamped with &#8220;connection error&#8221;, &#8220;TCP Connect failed&#8221;, &#8220;TCP Session Lost&#8221; and similar and after a bit och research the problematic servers were narrowed down to those monitored by Operations Manager. Specifically, those who are targeted by a TCP Port Check.</p>
<p>It would seem like the TCP-connection never fully initializes on the target server. Kind of like knocking on your neighbours door and then hiding. Then when the door opens, no one is there.</p>
<p>Maybe there&#8217;s a setting somewhere to modify how &#8220;deep&#8221; a Port Check should go before closing. Perhaps fully initializing and then sending a proper &#8220;Close&#8221; instead of just cutting the connection. In a few extreme cases we have noticed that the target server even goes so far as to start a session, but never ending it since there&#8217;s no closure and finally having no sessions to spare for the real users. But on most servers it&#8217;s just an annoyance since the &#8220;real&#8221; errors is very hard to be found in all the connection related logs.</p>
<p>Anyway. Just a good thing to keep in mind when running TCP Port Checks from Operations Manager 2007. Keep an eye on the logs when implementing the port checks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/tcp-port-check-use-with-caution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSMQ Management Pack: Subscript Out of Range</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/msmq-mp-subscriptoutofrange/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/msmq-mp-subscriptoutofrange/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 08:51:01 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Fixed]]></category>
		<category><![CDATA[MSMQ]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[Quick-fix]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=182</guid>
		<description><![CDATA[UPDATE: This problem seems to be fixed in the latest update! The MSMQ Management Pack seems to have a few problems with it&#8217;s discovery script that can lead to the following error showing up in the logs: This seems to be related to the discovery of public queues on some servers that has none. One [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #800000;"><span style="text-decoration: underline;">UPDATE: This problem seems to be fixed in the latest update!</span></span></p>
<p>The MSMQ Management Pack seems to have a few problems with it&#8217;s discovery script that can lead to the following error showing up in the logs:</p>
<pre class="brush: plain; title: ; notranslate">
The process started at 13:34:40 failed to create System.Discovery.Data. Errors found in output:

C:Program FilesSystem Center Operations Manager 2007Health Service StateMonitoring Host Temporary Files 499788DiscoverQueues.vbs(107, 4) Microsoft VBScript runtime error: Subscript out of range: '[number: 0]'

Command executed: &quot;C:WINDOWSsystem32cscript.exe&quot; /nologo &quot;DiscoverQueues.vbs&quot; {615D37C9-477D-62E2-0833-6ECBF0E89A87} {A176AC83-CC31-01C3-5DE9-E2DFF64E7CC7} &quot;MASKED.server.fqdn&quot; &quot;MSMQ&quot; &quot;true&quot; &quot;true&quot; &quot;False&quot; &quot;false&quot;
Working Directory: C:Program FilesSystem Center Operations Manager 2007Health Service StateMonitoring Host Temporary Files 499788

One or more workflows were affected by this.

Workflow name: Microsoft.MSMQ.2003.DiscoverQueues

Instance name: MASKED.server.fqdn

Instance ID: {A176AC83-CC31-01C3-5DE9-E2DFF64E7CC7}

Management group: MASKED
</pre>
<p>This seems to be related to the discovery of public queues on <em>some</em> servers that has none. One quick fix, or rather work-around, is to override the discovery on these servers to set <code>DiscoverPublic</code> to <code>False</code>.<br />
<img class="size-full wp-image-183" title="screenshot1245833173" src="http://www.teknoglot.se/wp/wp-content/uploads/2009/06/screenshot1245833173.png" alt="Screenshot of Override" width="626" height="26" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/msmq-mp-subscriptoutofrange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Error doing IIS Discovery&#8221; in OpsMgr</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/error-doing-iis-discovery-in-opsmgr/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/error-doing-iis-discovery-in-opsmgr/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 10:37:27 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Management Pack]]></category>
		<category><![CDATA[OpsMgr]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=158</guid>
		<description><![CDATA[I have seen this error popping up every now and then at multiple customer sites and haven&#8217;t really been able to solve it yet. It does not look like I am alone either. The error message usually looks like this: Or&#8230; I have been trying to figure out what file is missing and/or if the [...]]]></description>
			<content:encoded><![CDATA[<p>I have seen this error popping up every now and then at multiple customer sites and haven&#8217;t really been able to solve it yet. It does not look like I am alone either.<br />
The error message usually looks like this:</p>
<pre class="brush: plain; title: ; notranslate">Error doing IIS Discovery

Error: 0x80070002
Details: The system cannot find the file specified.

One or more workflows were affected by this.

Workflow name: Microsoft.Windows.InternetInformationServices.2003.DiscoverBase
Instance name: Microsoft.Windows.InternetInformationServices.2003.ServerRole
Instance ID: {A81E4808-4D05-9BFE-4043-DC668527F2D0}
Management group: MASKED</pre>
<p>Or&#8230;</p>
<pre class="brush: plain; title: ; notranslate">Error doing IIS Discovery

Error: 0x80070006
Details: The handle is invalid.

One or more workflows were affected by this.

Workflow name: Microsoft.Windows.InternetInformationServices.2000.DiscoverWebSites26to50
Instance name: IIS Web Server
Instance ID: {D36DA76A-027F-8F3E-4160-115279A1E23A}
Management group: MASKED</pre>
<p>I have been trying to figure out what file is missing and/or if the &#8220;invalid handle&#8221; is related. Possibly a file-handle? Could be but not neccesary since these two errors occur on different servers with increasing repeat-count (atleast once-a-day). The IIS MP does call the IIS*.VBS Scripts in %windir%System32 but <span style="text-decoration: underline;">as far as I can tell</span>, on the systems I have tried it on, the scritps return valid data. This does by no means mean that there is no error and evidently I am missing something. But what? Does anyone have a clue to this?</p>
<h5>References and other victims:</h5>
<ul>
<li><a href="http://www.google.com/search?hl=en&amp;q=%22Error+doing+IIS+Discovery%22&amp;btnG=Search">&#8220;Error Doing IIS Discovery&#8221;</a> on Google</li>
<li><a href="http://www.codejnki.com/2008/10/scom-iis-discovery-probe-module-failed-execution/">&#8220;SCOM: IIS Discovery Probe Module Failed Execution&#8221;</a> on Codejnki&#8217;s Blog</li>
<li><a href="http://social.technet.microsoft.com/Forums/en/windowsserver2008r2webtechnologies/thread/127f2473-9eea-4248-b9c2-d0b1605ed945">&#8220;Error doing IIS Discovery Error: 0&#215;80070006&#8243;</a> on TechNet Forums</li>
<li><a href="http://www.digitalsupporttech.com/forum/user/viewthread?thread=693344">&#8220;IIS Discovery Probe Module Execution Failure&#8221;</a> on Digital Support Forum</li>
<li><a href="http://www.eggheadcafe.com/software/aspnet/31903288/iis-discovery-probe-modul.aspx">&#8220;IIS Discovery Probe Module Execution Failure&#8221;</a> on EggHeadCafe</li>
<li><a title="IISDiscoveryProbe Error - any ideas? in Operations Manager IIS Management Pack" href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.opsmgr.iis&amp;tid=8d7de15a-3b54-4ea0-b2cc-30a23c361a35&amp;cat=F8CD68E8-5E44-9C7B-C39A-AB56E686F23F&amp;lang=en&amp;cr=US&amp;sloc=&amp;p=1">&#8220;IISDiscoveryProbe Error &#8211; any ideas?&#8221;</a> on <a href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx">Microsoft Discusson Groups</a></li>
</ul>
<p>And no, neither of these provides even a hint to a working solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/error-doing-iis-discovery-in-opsmgr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetworkAdapterCheck.vbs fails on Windows 2000</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/networkadaptercheck-fails-on-win2k/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/networkadaptercheck-fails-on-win2k/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 10:21:18 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Management Pack]]></category>
		<category><![CDATA[OpsMgr]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=125</guid>
		<description><![CDATA[Here&#8217;s my summary of the problems with the NetworkAdapterCheck.vbs script in the Windows Server 2000 Operating System Management Pack för Operations Manager 2007 that is causing the failed to create System.PropertyBagData error i wrote about earlier. This information in also available on https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=432627&#38;SiteID=446 Symptoms This &#8220;research&#8221; comes from getting an obscene amounts of Script or [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my summary of the problems with the NetworkAdapterCheck.vbs script in the Windows Server 2000 Operating System Management Pack för Operations Manager 2007 that is causing the <a title="failed to create System.PropertyBagData" href="http://teknoglot.hartati.se/ms/opsmgr2007/failed-to-create-propertybagdata-opsmgr/">failed to create System.PropertyBagData</a> error i wrote about earlier.<br />
This information in also available on <a href="https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=432627&amp;SiteID=446">https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=432627&amp;SiteID=446</a></p>
<h3>Symptoms</h3>
<p>This &#8220;research&#8221; comes from getting an obscene amounts of Script or Executable Failed to run in the Operations Console. Each time it was the NetworkAdapterCheck.vbs script that could not create PropertyBagData. The error message copied from one of the alerts looks like this:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
The process started at 14:29:26 failed to create System.PropertyBagData, no errors detected in the output. The process exited with 0

Command executed: &quot;C:WINNTsystem32cscript.exe&quot; /nologo &quot;NetworkAdapterCheck.vbs&quot; MASKEDCOMPUTERNAME 0 false true false
Working Directory: C:Program FilesSystem Center Operations Manager 2007Health Service StateMonitoring Host Temporary Files 2882781

One or more workflows were affected by this.

Workflow name: Microsoft.Windows.Server.2000.NetworkAdapter.NetworkAdapterConnectionHealth
Instance name: 0
Instance ID: {F4C478D3-38E5-8C29-3957-E3B7F486216E}
Management group: MASKED
</pre>
<p>This error repeats almost as often as the script is scheduled to run and appears on almost every Windows 2000 server.</p>
<p><span id="more-125"></span></p>
<h3>Cause?</h3>
<p>I am not really sure, but after a quite a bit of troubleshooting I am pretty sure it all boils down to a malformed WMI-query. What I basically did was to extract the script from the MP and dry-run it to see if I could find anything obvious, which I didn&#8217;t.<br />
Since I didn&#8217;t have a good debugging too available, like in PrimalScript, I added the VBS equivalent of old-school printf debugging. I basically added</p>
<pre class="brush: vb; light: true; title: ; notranslate">wscript.echo &quot;Line XX:&quot; &amp; Err.Number</pre>
<p>after each object/function call in the Main Sub.<br />
The problem seems to be at line 118:</p>
<pre class="brush: vb; light: true; title: ; notranslate">Set WMISet = WMIGetInstance(&quot;winmgmts:&quot; + TargetComputer + &quot;rootcimv2&quot;, query)</pre>
<p>At line 119 I had a debug line that never executes and it would seem like the script is unable to process the query and exits without any error codes.</p>
<p>The query variable contains the following:</p>
<pre class="brush: sql; light: true; title: ; notranslate">Win32_NetworkAdapter Where DeviceID='0' And ( NetConnectionStatus = '0' )</pre>
<p>When I was debugging this I started the script like this:</p>
<pre class="brush: bash; light: true; title: ; notranslate">cscript.exe /nologo &quot;NetworkAdapterCheck.vbs&quot; MASKED 0 false true false</pre>
<p>I did find that if I change the parameters to this:</p>
<pre class="brush: bash; light: true; title: ; notranslate">cscript.exe /nologo &quot;NetworkAdapterCheck.vbs&quot; MASKED 0 false false false</pre>
<p>Then the script runs smoothly and produces an XML-output like this:</p>
<pre class="brush: xml; light: true; title: ; notranslate">
&lt;Collection&gt;
&lt;DataItem type=&quot;System.PropertyBagData&quot; time=&quot;2009-04-22T15:03:44.6495202+02:00&quot; sourceHealthServiceId=&quot;C9F5A9F7-00A3-8A86-57B5-34FB634471A8&quot;&gt;
&lt;Property Name=&quot;State&quot; VariantType=&quot;8&quot;&gt;GOOD&lt;/Property&gt;
&lt;/DataItem&gt;
&lt;/Collection&gt;
</pre>
<h3>Comments</h3>
<p>There&#8217;s quite the lot of similar errors posted on various forums on the internet but most of them ends up pointing towards the Antivirus Software as the perp and we have tried various exceptions on the server like excluding HealthExplorer.exe, MonitoringHost.exe and also the entire Health Service State folder with no improvement. But since I was able to run the scripts from other locations (not excluded) on the same server I find it hard to believe that the AV would be blocking it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/networkadaptercheck-fails-on-win2k/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Got &#8220;failed to create System.PropertyBagData&#8221; in OpsMgr?</title>
		<link>http://www.teknoglot.se/ms/opsmgr2007/failed-to-create-propertybagdata-opsmgr/</link>
		<comments>http://www.teknoglot.se/ms/opsmgr2007/failed-to-create-propertybagdata-opsmgr/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 07:37:27 +0000</pubDate>
		<dc:creator>Sam T</dc:creator>
				<category><![CDATA[OpsMgr 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[OpsMgr]]></category>

		<guid isPermaLink="false">http://teknoglot.hartati.se/?p=120</guid>
		<description><![CDATA[On several systems at different sites I&#8217;ve noticed an abundance of the following errors in the Operations Manager 2007 logs: Always the &#8220;NetworkAdapterCheck.vbs&#8221;. Always &#8220;The process exited with 0&#8243; which usually means that life is A-OK. This may be a result of your AV-software blocking the scripts. The first thing to do would be to [...]]]></description>
			<content:encoded><![CDATA[<p>On several systems at different sites I&#8217;ve noticed an abundance of the following errors in the Operations Manager 2007 logs:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
Event Type:    Warning
Event Source:    Health Service Modules
Event Category:    None
Event ID:    21405
Date:        2009-04-21
Time:        09:00:26
User:        N/A
Computer:    MASKED
Description:
The process started at 09:00:26 failed to create System.PropertyBagData, no errors detected in the output.  The process exited with 0&lt;/pre&gt;
Command executed:    &quot;C:WINNTsystem32cscript.exe&quot; /nologo &quot;NetworkAdapterCheck.vbs&quot; MASKEDCOMPUTER.DOMAIN 7 false true false Working Directory:    C:Program FilesSystem Center Operations Manager 2007Health Service StateMonitoring Host Temporary Files 150958

One or more workflows were affected by this.

Workflow name: Microsoft.Windows.Server.2000.NetworkAdapter.NetworkAdapterConnectionHealth
Instance name: 7
Instance ID: {A6F89C78-1217-578E-B03D-5ED377A9A40B}
Management group: MASKED

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
</pre>
<p>Always the &#8220;NetworkAdapterCheck.vbs&#8221;. Always &#8220;The process exited with 0&#8243; which usually means that life is A-OK.</p>
<p>This <em>may</em> be a result of your AV-software blocking the scripts.<br />
The first thing to do would be to exclude HealthService.exe and MonitoringHost.exe. If this doesn&#8217;t work, try excluding the entire C:Program FilesSystem Center Operations Manager 2007Health Service State directory.</p>
<p>There is a <a title="MS Connect: failed to create System.PropertyBagData" href="https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=432627&amp;SiteID=446">bug-report on Microsoft Connect</a> that you can add your vote to if you cannot get rid of the problem. But ofcourse, if you have a solution, do post it here or on the bug-report. <img src='http://www.teknoglot.se/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.teknoglot.se/ms/opsmgr2007/failed-to-create-propertybagdata-opsmgr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

