Page 1 of 1

check_user for Windows

Posted: Wed Nov 13, 2013 4:51 pm
by DonB
Just looking for a plugin,

I was able to find a nrpe check_user command to check the number of users log in to a Linux server, is there an external command for Windows using NRPE (NSClient++)

Thank you,
Don

Re: check_user for Windows

Posted: Wed Nov 13, 2013 4:58 pm
by BanditBBS
This is one thing I found. Looks like it looks at the registry, as long as those keys are still good in newer OS it should work for you....no harm in trying:
http://john.wesorick.com/2011/03/nagios ... ndows.html

Re: check_user for Windows

Posted: Wed Nov 13, 2013 5:57 pm
by lmiltchev
Thanks, BanditBBS!

Re: check_user for Windows

Posted: Thu Nov 21, 2013 9:28 am
by DonB
I gave the site a try, but the binary file doesn't download and I wasn't able to compile the script using AutoIT.

Re: check_user for Windows

Posted: Thu Nov 21, 2013 1:45 pm
by tmcdonald
What Windows version? Without knowing, we can only guess at what might work. Here are two possibilities:

http://www.nsclient.org/nscp/attachment ... ggedin.vbs
http://www.robvanderwoude.com/ntadmincommands.php#Cmd01

Re: check_user for Windows

Posted: Thu Nov 21, 2013 2:32 pm
by DonB
Sorry about that. We have Windows 2008 R2 and Windows 2003 (32 & 64 bit versions). I tried the vbs script on Windows 2008 R2 and it reported that the server had 6 users logon, but there was only one user connected via RDP. I will check out the script and see if I can tweak it.

The other link is very useful, thank you. I used PSLOGGEDON.exe to very the head count, very nice! :D

Re: check_user for Windows

Posted: Thu Nov 21, 2013 2:44 pm
by slansing
Let us know if you need further help!

Re: check_user for Windows

Posted: Fri Nov 22, 2013 10:11 am
by DonB
Just to finish up on this post, I wasn't able to tweak the vb script to get the correct number of user count. I'll look into the additional windows commands to pinch that data for Nagios.
Thanks again for the suggestions!
Don

Re: check_user for Windows

Posted: Fri Nov 22, 2013 10:45 am
by slansing
Alright, keep us apprised!