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
check_user for Windows
Re: check_user for Windows
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
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
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
Re: check_user for Windows
Thanks, BanditBBS!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_user for Windows
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
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
http://www.nsclient.org/nscp/attachment ... ggedin.vbs
http://www.robvanderwoude.com/ntadmincommands.php#Cmd01
Former Nagios employee
Re: check_user for Windows
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!
The other link is very useful, thank you. I used PSLOGGEDON.exe to very the head count, very nice!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_user for Windows
Let us know if you need further help!
Re: check_user for Windows
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
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
Alright, keep us apprised!