check_nt uptime unable to display

Rajesh kanna tr_rajeshkanna at yahoo.com
Thu Jun 1 11:07:53 CEST 2006


Hi,

  I have nagios server version 1.3 running on solaris
9 machine. Nsclient installed on windows 2003 machine.

  From command line i could succeed with uptime
command

   ./check_nt -H 192.168.1.23 -p 1248 -v UPTIME
System Uptime - 18 day(s) 2 hour(s) 56 minute(s)

  I am unable to get output on Nagios web interface.
  
  error : no output
   
  configs :

  checkcommands.cfg

   # 'check_nt' command definition
define command{
        command_name    check_nt_uptime
        command_line    $USER$1/check_nt -H
$HOSTADDRESS$ -p 1248 -v UPTIME
}
                                                      
                         
 
  hosts.cfg 

# 'Win-Server' host definition
define host{
        use                     generic-host          
 ; Name of host template
to use
        host_name               test1
        alias                   Windows Server #1
        address                 192.168.1.23
        check_command           check_nt_uptime
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        }

  Services.cfg 

  # Generic service definition template
define service{
        name                           
generic-service ; The 'name' of this service template,
referenced in other service definitions
        host_name                       test1
        service_description             UPTIME
        is_volatile                     F0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  win-admins
        notification_interval           win-admins
        notification_period             24x7
        notification_options            c,r
        check_command                  
check_nt_uptime
        }

Can someone point me where i making error in config.

Regards,
Rajesh




  
  

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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