Retrieve windows' username remotely

Hello everybody,

I’m using Nagios since few months, and i’m trying to find out a solution for this: trying to retrieve the username that is logged in every single windows’ workstation around the network.
Let’s say: i can view that host 10.2.62.11 “LONDON11” is up, but can i view who is logged in? This would be really really smart.

I tried to work with windows “net” command and check_nt plugin, but no results yet…

thankyou.

Moreover, i found in the Windows XP Service Pack 2 Support Tools, a so called “whoami.exe”, that, as in Linux, retrieve the username of the user that is currently logged in. microsoft.com/downloads/deta … laylang=en ]

This .exe is as simple as typing: ECHO %USERDOMAIN%%USERNAME% .

So, my question is: it is possible to implement this command in some Nagios plugin, in order to execute it remotely?