LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2010, 08:38 AM   #1
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Rep: Reputation: 30
remote desktop port name


what's the name of the port for remote desktop? is it something called 'remotelypossible'? i wanted to monitor that port in nagios, so i need to find out the name for it first.

thanks
 
Old 08-02-2010, 01:26 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

What are you referring to as remote desktop? RDP protocol used by Windows, NX, VNC, ...?

Kind regards,

Eric
 
Old 08-02-2010, 01:42 AM   #3
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

Ya, RDP protocol. But there is one port 799, which is remotelypossible, is for RDP too right?
 
Old 08-02-2010, 01:54 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

I had to do some Google searching for that. Looks like 779 is used by ControlIT, a remote control application by CA Technologies. If you want to monitor the Windows RDP port you need to monitor port 3389. You could do that using the check_tcp_port plugin for that.

Kind regards,

Eric
 
Old 08-02-2010, 02:02 AM   #5
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

So do i have to write the service and command like this:

Code:
define service{
        use                     generic-service
        host_name               remotehost
        service_description     TCP
        check_command           check_tcp!3389
        }
Code:
define command{
        command_name    check_tcp
        command_line    $USER1$/check_tcp -H $HOSTADDRESS$ $ARG1$
        }

Last edited by Xanios; 08-02-2010 at 02:03 AM.
 
Old 08-03-2010, 01:57 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

That looks correct at first glance. The only thing you're not mentioning in the service is the contact or contact group to whom notifications should be send.

Kind regards,

Eric
 
Old 08-03-2010, 07:43 AM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by EricTRA View Post
Hi,

That looks correct at first glance. The only thing you're not mentioning in the service is the contact or contact group to whom notifications should be send.

Kind regards,

Eric
yes, but this only applies if you do not have the contact/contact groups listed in the the generic-service template
 
Old 08-03-2010, 08:19 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by centosboy View Post
yes, but this only applies if you do not have the contact/contact groups listed in the the generic-service template
Correct, thanks for the heads-up.

Kind regards,

Eric
 
Old 08-03-2010, 08:49 AM   #9
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by centosboy View Post
yes, but this only applies if you do not have the contact/contact groups listed in the the generic-service template
Hi,

But i thought by default there is contacts listed in contacts.cfg. Is that what you mean?

Sorry x_x
 
Old 08-04-2010, 02:09 AM   #10
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Xanios View Post
Hi,

But i thought by default there is contacts listed in contacts.cfg. Is that what you mean?

Sorry x_x
Contacts.cfg defines contacts and contact groups only. You still need to define in the service who to contact.
 
Old 08-04-2010, 02:12 AM   #11
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

is it something like:

Code:
define service{
        use                     generic-service
        host_name               remotehost
        service_description     TCP
        check_command           check_tcp!3389
        contact_groups          admins
        }
Like this will do?

But why is there such a need? For my other services like HTTP, SSH, HTTPS, FTP, SMTP etc, for all those i did not define the contact_groups in service.
 
Old 08-04-2010, 02:21 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by Xanios View Post
Hi,

is it something like:

Code:
define service{
        use                     generic-service
        host_name               remotehost
        service_description     TCP
        check_command           check_tcp!3389
        contact_groups          admins
        }
Like this will do?

But why is there such a need? For my other services like HTTP, SSH, HTTPS, FTP, SMTP etc, for all those i did not define the contact_groups in service.
Hello,

That's what centosboy pointed out earlier. You don't need to set it in the service if you have set the contact/contact group in your service template. You call the service template with the line
Code:
use                     generic-service
The way centosboy stated is a bit confusing since he first stated correctly that you don't need to supply it if the contact is set in the template and in his latter post stated that you have to set it in the service.

Kind regards,

Eric
 
Old 08-04-2010, 03:23 AM   #13
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi Eric,

Alright. For service_description, i could change to any name i want right? Since it is just a description. So i'm going to change it to Remote Desktop.(:
 
Old 08-04-2010, 03:34 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by Xanios View Post
Hi Eric,

Alright. For service_description, i could change to any name i want right? Since it is just a description. So i'm going to change it to Remote Desktop.(:
Correct, you can change the description to what you want.

Kind regards,

Eric
 
Old 08-04-2010, 03:57 AM   #15
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hi,

Code:
define service{
        use                     generic-service
        host_name               wins xp sp2
        service_description     Remote Desktop
        check_command           check_tcp!3389
        }
is there any feature i have to enable in the windows server in order to monitor remote desktop?
cause i got "CRITICAL - Socket timeout after 10 seconds"

Last edited by Xanios; 08-04-2010 at 04:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: remote port forwarding failed for listen port 7869 windstory Linux - Newbie 1 08-02-2010 11:07 AM
Cross-platform remote control / remote desktop software trafikpolisen Linux - Software 5 01-24-2010 01:27 AM
Scripting Remote Logon - Starting Remote Gnome Desktop klmukp Linux - Newbie 1 09-21-2008 01:13 AM
Remote Desktop Port Numbers seanferd Linux - Software 5 05-04-2006 01:05 PM


All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration