Page 3 of 4

Re: RDP services monitoring

Posted: Wed Apr 01, 2015 12:21 am
by Box293
sjain2014 wrote:I have configured get_rdp_info service in one host by CLI in /usr/local/nagios/etc/services (host service file name ws-windows.tel.co.in)
You must add services to Nagios XI through CCM. When you add them via the CLI they are not managed by CCM and will more than likely be deleted by CCM through an Apply Configuration.

Simply copy an existing service in CCM that is similar and then change the check command to check_nrpe and $ARG1$ to get_rdp_info

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 2:26 am
by shailu2014
Thanks for help to configured RDP in CCM,

It is possible to get the user name in RDP Session in CCM with the Active=1 (Screen Shot attached).

Thanks,
Sjain

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 11:06 am
by abrist
That is not currently an option with Box293's plugin. I think his plugin may just be looking at the counter for active sessions (which does not include the logged in user name). You may wish to ask him for a feature request through email at: [email protected]

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 5:21 pm
by Box293
abrist wrote:That is not currently an option with Box293's plugin. I think his plugin may just be looking at the counter for active sessions (which does not include the logged in user name). You may wish to ask him for a feature request through email at: [email protected]
Correct.

However, if you have a look in the plugin code, it uses a program called qwinsta to determine # of sessions, which does contain user information. You could modify the plugin so it displays the usernames as part of the output.

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 6:58 pm
by shailu2014
Hi Box293,
Please can you help me about the qwinsta scripts in Nagios XI for RDP Session with user name.

Thanks,
SJain

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 7:00 pm
by Box293
This is going to require you to modify the plugin on the windows machine. You are going to need some VB scripting skills.

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 7:07 pm
by shailu2014
so please can you provide me some VB scripts related for same and where we can use it ? scripts should be configure in NSC.ini file ?

can you help me please...

Thanks,
Sjain

Re: RDP services monitoring

Posted: Mon Apr 06, 2015 7:20 pm
by Box293
get_rdp_info.vbs is the file you need to edit.

Line 395 is where qwinsta is being called. From that point on it goes through a process of looping through the output.

The help you require is outside the scope of this forum. You need to get a developer / programmer to have a look at this to help you out.

Re: RDP services monitoring

Posted: Thu Nov 12, 2015 11:02 am
by dlukinski
Hello all

Trying to get same configuration to work for me.
Copied php to templates, copied vbs, added lines, followed instructions in general except for trying to use GUI for Service creation (XI)

Check (GUI or CLI) does not produce any results: "No handler for that command" instead.

Please help to get this one working unless there is a better way to check for RDP sessions

Re: RDP services monitoring

Posted: Thu Nov 12, 2015 11:16 am
by jdalrymple
dlukinski wrote:Check (GUI or CLI) does not produce any results: "No handler for that command" instead.
This means you don't have your external script properly defined in your nsc.ini/nsclient.ini - post the contents of that file for further troubleshooting. It might also be handy for us to see the output of dir /s "c:\Program Files\NSClient++\*vbs"