Using Nagios to Monitor RDP

Philipp Geschke nagios at pgmail.net
Mon Nov 19 18:39:22 CET 2007


Joel Roberts schrieb:
> Want to use Nagios to monitor RDP availability on a Windows 2k3 server
> (port 3389). Have put the following in my windows.cfg file:
> 
>  
> 
> define service{
> 
>             use                               generic-service
> 
>             host_name                    SERVERNAME
> 
>             service_description       RDP
> 
>             check_command           check_tcp!3389
> 
>             }
> 
>  
> 
> But get an error when I try to verify the config files. Anyone else
> using check_tcp and see what I’m doing wrong here? I know the host is
> configured correctly in the file, I’m using it to monitor other services
> (HTTP and Ping) with no problem.
> 
>  
> 
> Thanks in advance.
> 
>

That doesn't look wrong.
Make sure the template generic-service defines all obligatory values.

What does the error say in detail? (nagios -v output).

This is the way my RDP monitoring is set up:

define service {
        use                             default-service
        host_name                       SERVERNAME
        service_description             RDP
        check_command                   check_tcp!3389
}

define service{
        name                                    default-service
        active_checks_enabled                   1
        passive_checks_enabled                  0
        parallelize_check                       1
        obsess_over_service                     1
        check_freshness                         0
        notifications_enabled                   1
        event_handler_enabled                   0
        flap_detection_enabled                  0
        process_perf_data                       1
        retain_status_information               1
        retain_nonstatus_information            1
        register                                0

        is_volatile                             0
        check_period                            24x7
        max_check_attempts                      5
        normal_check_interval                   5
        retry_check_interval                    1
        contact_groups                          contacts
        notification_interval                   30
        notification_period                     24x7
        notification_options                    c,r
}

define command{
        command_name    check_tcp
        command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
        }

Also make sure, check_tcp is really located under $USER1$.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list