Skip navigation
1 2 3 Previous Next 241334 Views 31 Replies Latest reply: Nov 16, 2009 10:13 AM by alzoo RSS
alzoo Rank: White Belt 74 posts since
May 11, 2009
Currently Being Moderated

Sep 22, 2009 4:11 AM

Could not read the WMI value (NT code 0x80041010)

Hi,

 

I'm getting this error when I bind the WMITerminalServer Template to my organiser to view Terminal sessions performance information.

 

Could not read the WMI value (NT code 0x80041010). Check your username/password settings and verify network connectivity.

 

This zenpack uses the following WQL command to receive the information.

 

ZenPacks.community.WMIPerf_TerminalServer
Version1.0
AuthorJohan Keskitalo

 

SELECT ActiveSessions,InactiveSessions,TotalSessions FROM Win32_PerfRawData_TermService_TerminalServices

 

As soon as I unbind the template, the error stops.

 

The WMIPerformanceMonitor Zenpack uses the below command to obtain the same information and the error does not appear.

 

NameWMIPerformanceMonitor
Version
Author

 

$$ZENHOME/Products/WMIPerformanceMonitor/libexec/wmi_stats.pl TS "${dev/id}" "${dev/manageIp}" "${dev/zWinUser}" '${dev/zWinPassword}'

 

Can anyone tell me why this error appears with a WQL command

 

The servers are Windows 2003 Standard x64 and besides receiving the error, the performance counters to appear in the Graph

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    2. Sep 22, 2009 12:05 PM (in response to alzoo)
    Re: All Chinese to me...

    You really should be looking at Egor Puzanov's WMI packs as they are far more advanced than the old WMI packs which you are talking about.

     

    The WMI Data Source pack and the WMI Windows Performance Pack.  These will allow you to create a WMI type datapoint and specify that WMI query in it (much as you would specify an OID for an SNMP type datapoint).

     

    Also, have you tried something like: wmic -u 'AD/user%password' //host.domain.com "Select ActiveSessions,InactiveSessions,TotalSessions from Win32_PerfRawData_TermService_TerminalServices"

     

    Ryan Matte

    Nova Networks

    rmatte@novanetworks.com

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    4. Sep 22, 2009 12:47 PM (in response to alzoo)
    Re: All Chinese to me...
    There isn't much difference other than the case of the query.  You'd also be doing a direct query from the commandline instead of via zenpack scripts.  If it doesn't work via wmic it's most likely a configuration issue on the windows server itself.
  • ajtalsma Rank: White Belt 21 posts since
    Sep 9, 2008
    Currently Being Moderated
    6. Sep 23, 2009 6:06 AM (in response to alzoo)
    Re: Could not read the WMI value (NT code 0x80041010)

    I have the exact same problem. On a Windows 2003 Terminal Server (32 bit) it works fine. On a Windows 2008 Terminal Server (32 bit) I get the same WMI error.

    I'm using the same Zenpacks.

     

    ERROR: Retrieve result data.
    NTSTATUS: NT code 0x80041010 - NT code 0x80041010

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    8. Sep 23, 2009 7:22 AM (in response to alzoo)
    Re: Could not read the WMI value (NT code 0x80041010)

    ok, so here's yours:

     

    wmic -d99 -U emeaad\\zenwmi%Pass //wdmsitse03.ancy.fr.sopra "SELECT ActiveSessions,InactiveSessions,TotalSessions FROM Win32_PerfRawData_TermService_TerminalServices"

     

    and here's mine:

     

    wmic -U 'AD/user%password' //host.domain.com "Select ActiveSessions,InactiveSessions,TotalSessions from Win32_PerfRawData_TermService_TerminalServices"

     

    Why are you putting 2 slashes between the domain name and the username?  You only need 1 slash.  WMIC is most likely considering the second slash as part of the username.

  • ajtalsma Rank: White Belt 21 posts since
    Sep 9, 2008
    Currently Being Moderated
    10. Sep 23, 2009 8:52 AM (in response to alzoo)
    Re: Could not read the WMI value (NT code 0x80041010)

    The blackslahes don't matter indeed. I also get the following debug output on the server that doesn't work:

     

    IWbemWCOSmartEnum_Next: struct IWbemWCOSmartEnum_Next
            out: struct IWbemWCOSmartEnum_Next
                ORPCthat                 : *
                    ORPCthat: struct ORPCTHAT
                        flags                    : 0x00000000 (0)
                        extensions               : *
                            extensions: struct ORPC_EXTENT_ARRAY
                                size                     : 0x00000001 (1)
                                reserved                 : 0x00000000 (0)
                                extent                   : *
                                    extent: ARRAY(2)
                                        extent                   : *
                                            extent: struct ORPC_EXTENT
                                                id                       : 0000031c-0000-0000-c000-000000000046
                                                size                     : 0x0000047b (1147)
                                        extent                   : NULL
                puReturned               : *
                    puReturned               : 0x00000000 (0)
                pSize                    : *
                    pSize                    : 0x00000000 (0)
                result                   : DOS code 0x80041010
    ERROR: Retrieve result data.

     

    Also using the WMIDataSource Zenpack

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    11. Sep 23, 2009 9:19 AM (in response to ajtalsma)
    Re: Could not read the WMI value (NT code 0x80041010)

    Well, I'm out of ideas.  My best guess is that something is wrong with the WMI config on the server.

     

    I did find reference to this event log error message:

     

    Plug-in 'WMS WMI Event Handler' on publishing point 'aarhusfilm' failed
    with the following information: Error code = 0x80041011, Error text =
    'The WMI event plugin failed to start.'.

     

    You might want to check if you are getting similar error messages in the event log on that server.

     

    Basically the error means that something isn't properly registered with WMI.

     

    You could try a "wmiadap /r" and a "wmiadap /f" on the server and then reboot it, see if that works.

     

    I'm really not a big fan of WMI, I find it to be unreliable.

  • ajtalsma Rank: White Belt 21 posts since
    Sep 9, 2008
    I think it has something to do with the WMI namespace difference between Windows 2003 and 2008. Alzoo can you check for any namespace differences between 32 bit and 64 bit Windows version. Is it by any change a R2 server? Or a difference in service pack?
  • ajtalsma Rank: White Belt 21 posts since
    Sep 9, 2008
    Currently Being Moderated
    13. Sep 23, 2009 9:45 AM (in response to ajtalsma)
    Re: Could not read the WMI value (NT code 0x80041010)

    I found my problem. The Windows 2008 Terminal Server was missing the class:

     

    Win32_PerfRawData_TermService_TerminalServices

     

    The Windows 2003 Terminal Server did have this class.

     

    You can check with the WMI explorer:

     

    http://www.ks-soft.net/hostmon.eng/wmi/index.htm

     

    The question is how to create this class on a Windoes 2008 server.

1 2 3 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points