I've added (copied from the default "CPU Utilization" Category) the below to my hostresource.xml file under the <POLL ID="Windows 2008 R2" section
<CATEGORY ID="CPUCriticalUsage" command="cpu.vbs" description="Percentage of CPU used is monitored periodically and displayed." ignoreLines="3" parseAll="true">
<ENTITY ID="CPUUtilization" applyThresholdOver="curValue" comparePreValue="false" storeHistory="true" storeValue="curValue" threshold="Th6" units="%">
<PARSE isEntityName="true" name="Processor" token="1"/>
<PARSE name="curValue" token="2"/>
</ENTITY>
</CATEGORY>
Added the monitor to the "Windows 2008 R2" Device Template, and change the protocol ID to '3' for WMI in graphdetails, restarted opmanager, the cpu.vbs script runs fine with the asscociated credentials (which pass in the UI) yet tests for this monitor in the UI do not work.
Any ideas