RDP services monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: RDP services monitoring

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: RDP services monitoring

Post 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
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RDP services monitoring

Post 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]
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: RDP services monitoring

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: RDP services monitoring

Post by shailu2014 »

Hi Box293,
Please can you help me about the qwinsta scripts in Nagios XI for RDP Session with user name.

Thanks,
SJain
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: RDP services monitoring

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: RDP services monitoring

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: RDP services monitoring

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: RDP services monitoring

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: RDP services monitoring

Post 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"
Locked