RDP services monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

RDP services monitoring

Post by shailu2014 »

Hi All,

I have configured the windows server 2008 std r2 with basic montoring device (CPU, Hard disk, RAM, Page-file), Please can someone help how to monitoring the RDP services or RDP port 3389 on Nagios XI.

Thanks,
Sjain
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: RDP services monitoring

Post by cmerchant »

There is no specific RDP check. If you want to just check that the port is open and available, use check_tcp using the port 3389.

Otherwise you could check out the following monitoring plugin in our exchange:

http://exchange.nagios.org/directory/Pl ... tocols/RDP
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 plugin will show you RDP Sessions:

http://exchange.nagios.org/directory/Pl ... fo/details
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 »

Can we get the RDP login user name during rdp on server or desktop through Nagios XI Alert.

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 »

Yes, you would need to write a custom script.

Have a look at the plugin I pointed you to, it uses a command qwinsta that includes that information.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: RDP services monitoring

Post by tmcdonald »

sjain, let us know if that linked plugin works for you.
Former Nagios employee
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: RDP services monitoring

Post by shailu2014 »

Hi Tmcdonald,

I have tried to deployed the RDP configured in Nagios Core 4.0.5 but it given error (screen shot attached) and please can you help how i can deployed in Nagios XI.

Thanks,
Sjain
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RDP services monitoring

Post by lmiltchev »

The plugin seems to be running fine for me. Here's what I did.

I downloaded the "get_rdp_info.zip", and unzipped it. I copied the "get_rdp_info.vbs" script to the "C:\Program Files\NSClient++\scripts\" directory on my Windows box.

I added the following line to the "nsclient.ini" file (under [/settings/external scripts/scripts] section):

Code: Select all

get_rdp_info = cscript.exe //T:30 //NoLogo scripts\get_rdp_info.vbs
saved and restarted the NSClient++ service.

I copied over the "get_rdp_info.php" file to the "/usr/local/nagios/share/pnp/templates/" directory on the Nagios XI server.

I tested the check from the command line by running:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client ip> -p 5666 -c get_rdp_info
Sessions {Active=1 Idle=0 Disconnected=0} RDP Bytes {Input=0 Output=0}|'Active Sessions'=1 'Idle Sessions'=0 'Disconnected Sessions'=0 'Input Bytes'=0Bytes 'Output Bytes'=0Bytes '[get_rdp_info]'=0
I created a new check in the CCM:

Code: Select all

define service {
	host_name			Windows7
	service_description		get_rdp_info
	use				xiwizard_windowsserver_nsclient_service
	check_command			check_nrpe!get_rdp_info!!!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	notifications_enabled		0
	contacts			nagiosadmin
	_xiwizard			windowsserver
	register			1
	}
I tested the check from the GUI by scheduling a forced immediate check:
example01.PNG
Hope this helps.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: RDP services monitoring

Post by shailu2014 »

Hi Lmiltchev,

When I am running the below command after that it's giving error

/usr/local/nagios/libexec/check_nrpe -H 192.168.15.72 -p 5666 -c get_rdp_info
CHECK_NRPE: Error - Could not complete SSL handshake.

Please help to resolve the issue and let me know the steps to configure the RDP service through CCM (screen shot attached) which already desktop or servers added in Nagios XI Server.

Thanks,
Sjain
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: RDP services monitoring

Post by tgriep »

Try running the command like this to disable ssl to see if it works for you.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.15.72 -p 5666 -c get_rdp_info -n
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked