Reminders
Problem

WMI counters visible in Perfmon but not WUG

16 months ago
OfflineMarc Bergeron
Marc Bergeron

I'm trying to add WMI counters for MS AppFabric running on a cluster of servers. If I access Perfmon on the AppFabric servers, or browse to them using Perfmon on the WUG servers, I see the counters and can create graphs. However, when I try to add a Performance Monitor for them, I see nothing.

Any idea why the counters would not show up in WUG?

Perfmon showing AppFabric counters for af1001:

perfmon_af_counters.jpg

 

WUG with no AppFabric counters for af1001:

wug_no_af_counters.jpg

-----
You had this issue too1 person has this issue.
 
Resolved

0 Resolutions:

25 Replies

OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 16 months ago

Moved to the appropriate forum.

My immediate guess is that those performance counters were not registered properly by the application when installed and therefore are not available via WMI.  Just because you can see the counters using perfmon, doesn't mean that they are available through WMI.  Try using the steps below to see if they are in fact registered with WMI.

  1. On the WUG machine, launch WBEMTEST.exe
  2. Click the Connect button, use \\af1001\root\cimv2 as the namespace and enter in a user and password.
  3. Now that you are connected, click the Enum Classes button.
  4. Enter Win32_PerfRawData and click ok.
If the counters are registered through WMI, then it will be listed here.  If you find a listing for the AppFabric counters, double-click it to open the Object editor.  Once in the object editor, click the instances button.  My gut feeling is that you won't make it this far in the test.  If you don't, then I would suggest contacting AppFrabric and find out if the support WMI counters.  If you do make it all the way through the test, let me know and we will go from there.

OfflineMarc Bergeron Marc Bergeron said 15 months ago

I found the counters at Win32_PerfRawData_MicrosoftApplicationServerCachingEventDefinitions_AppFabricCachingHost, Win32_PerfRawData_MicrosoftApplicationServerCachingEventDefinitions_AppFabricCachingCache, etc.

What's next?


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

Hey Marc,

The quickest path to resolution here would be to call into support.  I just checked and the queue is pretty empty right now, which means you should get through rather quickly.  Their number is 1-678-287-0700.

If that isn't an option, I will do some more research to see what I can come up with.  Just let me know either way.

Thanks


OfflineMarc Bergeron Marc Bergeron said 15 months ago

I called support, but because this is an Eval, they're having me go through my account rep. I'll post any solution here once I get some help.


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

Sorry Marc, I didn't realize you were evaluating.  I will do some more digging on my end as well.


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

Have you heard anything back yet?  If not, here are a couple more things...

When you found the listings for the counters, did you go through the next couple of steps?  Double-clicking the listing and then opening the instances.  What were the results in the instances window?

What is the processor architecture on both the WUG machine and the target machine (32bit or 64bit)?


OfflineMarc Bergeron Marc Bergeron said 15 months ago

Windows 2008 R2 x64

I'm not very familiar with WBEMTEST, so forgive me if I require very specific steps in order to get the data you're looking for.

What I did was double-clicked Win32_PerfRawData_MicrosoftApplicationServerCachingEventDefinitions_AppFabricCachingHost in the Query Result window. Then, I selected "CacheMissPercentage" in the Properties and clicked the Instances button. This returned 1 object: Win32_PerfRawData_MicrosoftApplicationServerCachingEventDefinitions_AppFabricCachingHost=@.



OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

Are both machines Win 2008 64bit?  And no worries about not being familiar with WBEMTEST, I am actually learning a lot more about it as we are going through this.


OfflineMarc Bergeron Marc Bergeron said 15 months ago

Yes, 64-bit across the board.


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

I think that might be the cause of the issue.  Although WUG will install and runs just fine on 64bit machines, it is still a 32bit app.  I am attaching a Jscript file that I would like for you to run on the WUG machine.  This script will basically run the same WMI query used by WUG and output the visible WMI Classes.  Lets see what this returns and go from there.  After downloading the attachment and putting it on the WUG machine (I recommend at the root of C for easy typing), follow these steps on the WUG machine:

  1. Open a command-prompt with administrative privileges
  2. Navigate to the C:\Windows\SysWOW64 directory
  3. Execute the following command (case-sensitive):
cscript.exe <PATH TO SCRIPT> -C <COMPUTER> -U <USERNAME> -P <PASSWORD> > C:\WMI_Classes.txt
COMPUTER is the remote machine we are having the problem with and can be either hostname or IP.  Here is an example of what it should look like:
cscript.exe C:\EnumClasses.js -C af1001 -U jason -P P@ssw0rd > C:\WMI_Classes.txt
The script will output messages to the prompt window so that you will know what it going on and when it is finished.  Once finished, you will have a new file called WMI_classes.txt.  Either post it here or send it to me via email (guru at whatsupgold.com).

Attachments

 

OfflineMarc Bergeron Marc Bergeron said 15 months ago

Here it is.

 

Attachments

 

OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

Ok, so I am learning more and more as we go.  Thanks for the challenge Marc.  Now back to the issue at hand...

Ok, not sure if you looked or not, but the classes that we are looking for did not show up in the file.  This means that those classes are not accessible by 32bit applications.  If you were to run the same script, using the 64bit version of cscript.exe you would get different results and would see those counters returned.  This is why they show up in Perfmon and when running WBEMTEST.  Another way of proving this would be to run Perfmon from a 32bit system and access the target machine.  Just like in WUG, you won't see the counters listed.

So what doesa all of this mean?  Well, unfortunately, there isn't much we can do from the WUG side of things.  This is an issue with the vendor that created the classes, which I think in this case is actually Microsoft.  This doesn't mean that you can't monitor these counters in WUG though, but it does mean it will take a little work to actually accomplish it.

Basically you would need 2 components.

  1. A process either on the target machine or on the WUG machine, that can access the counters and store the values to some file at the same location.
  2. An Active Script within WUG (either Active monitor or Performance monitor) that read the values from those files.
Sorry to be the barer of bad news.  Furthermore, I hope that this doesn't have a negitive effect on your evaluation.  Let me know if there is anything else I can help with.

OfflineMarc Bergeron Marc Bergeron said 15 months ago

Any plans to make WUG a true 64-bit application, or at least have a 64-bit polling engine?

Thanks for taking the time to look into this. 

 


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

No problem.  As I mentioned, I learned some new things as well.  

So with the way things are going, we are going to have to eventually convert.  That being said, it isn't something that is on the immediate roadmap, as there are not a lot of gains on the applications or users behalf in doing so.  That makes it really hard to justify the time expense.

Hope you have a great weekend.


Offlinecarlos sabelli carlos sabelli said 15 months ago

Hello i have a similar problem. Basically, i can see performace monitors for SQL on WhatsUp  Server an only another server. However i can´t se the SQL Server counters on 4 Server. I callled the support and they told me that is  microsoft issue. However, i can open performance monitors from windows on all machines. I was wondering if you could help me with this issue.

Thanks In advance,

 

Best Regards


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 15 months ago

Can you send me the case number from when you contacted support?

Take a look at this thread and see if this is the same issue that you are experiencing: Failed to load - WMI Performance Monitor


OfflineThoralf Geese Thoralf Geese said 14 months ago

Hi, all I have the same problem in my environment. After a long search I found the following hint which I use when I run in this problem. There is no copy/paste error for the wmiadap command. Pls run it several times.

net stop winmgmt /y
del %windir%\system32\Wbem\Repository\*.*
net start winmgmt
Wmiadap /f
Wmiadap /f
Wmiadap /f
Wmiadap /f
Wmiadap /f
Wmiadap /f


Offlineols on ols on said 12 months ago

I do have a similar issue.
Installed Steelbelted Radius (32bit app) on win2k8 R2. On the local machine it is possible to read WMI values for SBR.
When i setup Whatsup to get the requested perf counter, I only can get the Counter name. The values do always show:

Any ideas?

Capture.PNG


Offlineols on ols on said 12 months ago

 winmgmt /resyncperf did not solve the issue :(

 


OfflineWhatsUp Guru (Jason Williams) WhatsUp Guru (Jason Williams) said 12 months ago

@Ols - did you follow the steps listed above to run the EnumClasses.js file?  These counters may not be accessible to 32bit applications.


OfflineJason Alberino Jason Alberino said 12 months ago

This seems similar to a different issue with some Citrix WMI monitors. A fix is being worked on for the Citrix WMI monitors in v16 based on another thread. http://community.whatsupgold.com/forums/whatsupgoldeditionsstandardandpremiumeditions/performance-monitors-not-accessible


Would you like to comment?

You must be a member. Sign In if you are already a member.

  • 2,860 views
  • 4 versions
  • 25 replies
  • 3 followers
     
Post Date:
January 23, 2012
Posted By:
Marc Bergeron

Related Content

Search this area

About this forum

  • 142k views
  • 2222 topics
  • 55 followers
     

Post questions and find answers for all things related to the Standard and Premium Editions of WhatsUp gold.


Viewed 2,860 times