check_user for Windows

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DonB
Posts: 39
Joined: Mon Mar 11, 2013 3:26 pm

check_user for Windows

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: check_user for Windows

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_user for Windows

Post by lmiltchev »

Thanks, BanditBBS!
Be sure to check out our Knowledgebase for helpful articles and solutions!
DonB
Posts: 39
Joined: Mon Mar 11, 2013 3:26 pm

Re: check_user for Windows

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_user for Windows

Post 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
Former Nagios employee
DonB
Posts: 39
Joined: Mon Mar 11, 2013 3:26 pm

Re: check_user for Windows

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_user for Windows

Post by slansing »

Let us know if you need further help!
DonB
Posts: 39
Joined: Mon Mar 11, 2013 3:26 pm

Re: check_user for Windows

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_user for Windows

Post by slansing »

Alright, keep us apprised!
Locked