LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remote desktop port name (https://www.linuxquestions.org/questions/linux-newbie-8/remote-desktop-port-name-823366/)

Xanios 08-01-2010 07:38 AM

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

EricTRA 08-02-2010 12:26 AM

Hi,

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

Kind regards,

Eric

Xanios 08-02-2010 12:42 AM

Hi,

Ya, RDP protocol. But there is one port 799, which is remotelypossible, is for RDP too right?

EricTRA 08-02-2010 12:54 AM

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

Xanios 08-02-2010 01:02 AM

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$
        }


EricTRA 08-03-2010 12:57 AM

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

centosboy 08-03-2010 06:43 AM

Quote:

Originally Posted by EricTRA (Post 4053444)
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

EricTRA 08-03-2010 07:19 AM

Quote:

Originally Posted by centosboy (Post 4053829)
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

Xanios 08-03-2010 07:49 AM

Quote:

Originally Posted by centosboy (Post 4053829)
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

centosboy 08-04-2010 01:09 AM

Quote:

Originally Posted by Xanios (Post 4053905)
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.

Xanios 08-04-2010 01:12 AM

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.

EricTRA 08-04-2010 01:21 AM

Quote:

Originally Posted by Xanios (Post 4055049)
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

Xanios 08-04-2010 02:23 AM

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.(:

EricTRA 08-04-2010 02:34 AM

Quote:

Originally Posted by Xanios (Post 4055114)
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

Xanios 08-04-2010 02:57 AM

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"


All times are GMT -5. The time now is 03:59 PM.