CheckWMI Problem on Win2k


Hi all together,

this is my first post and I have currently a big Problem. I’ve wrote a wrapper to check the currently logged in user of a windows server through checkwmi.
Here is the checkwmi command:

/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS -p 5666 -c CheckWMI -a Query=Select Username from Win32_ComputerSystem

The wrapper check for a NULL-String if no user is logged in and result a critical message.
On Windows 2003 the procedure works. But on a Windows 2000 Server I get the following message:

WMIQuery failed: CoCreateInstance for CLSID_WbemAdministrativeLocator failed!:failed to lookup error code: 2147749908( reson: 317)

Is there anybody who can help me to solve this problem? PLEASE!!!

kindly regards

PS: Sorry for my pretty english, I’m from germany… :wink: