Page 1 of 4
RDP services monitoring
Posted: Thu Jan 22, 2015 10:40 am
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
Re: RDP services monitoring
Posted: Thu Jan 22, 2015 3:10 pm
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
Re: RDP services monitoring
Posted: Thu Jan 22, 2015 6:46 pm
by Box293
Re: RDP services monitoring
Posted: Fri Jan 23, 2015 1:36 am
by shailu2014
Can we get the RDP login user name during rdp on server or desktop through Nagios XI Alert.
Thanks,
Sjain
Re: RDP services monitoring
Posted: Fri Jan 23, 2015 5:34 am
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.
Re: RDP services monitoring
Posted: Fri Jan 23, 2015 2:15 pm
by tmcdonald
sjain, let us know if that linked plugin works for you.
Re: RDP services monitoring
Posted: Thu Mar 26, 2015 10:39 am
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
Re: RDP services monitoring
Posted: Thu Mar 26, 2015 12:22 pm
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.
Re: RDP services monitoring
Posted: Fri Mar 27, 2015 3:20 am
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
Re: RDP services monitoring
Posted: Fri Mar 27, 2015 11:38 am
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