forums.meulie.net

check_nt - error

Hi everyone,

I recently installed nagios3 on my ubuntu 12.04.1 LTS.

So far i am able to see the windows host i want to monitor , i also see the service i want, which is c:\ Drive space, however when i get the notifications by emails , here is what i see

Service: C:\ Drive Space
Host: server
Address: 192.168.2.100
State: UNKNOWN

Date/Time: Wed Nov 14 08:59:06 EST 2012

Additional Info:

missing -l parameters

I will paste a copy on my nagios.cfg. Also please note, that when running sudo nagios3 -v /etc/nagios3/nagios.cfg, i get no errors and no warnings.

Can you please help?

Thanks in advance

Windows.cfg

##############################################################

Definition of a contact

##############################################################

define contact{

    contact_name                    admin1
    alias                           admin1
    contactgroups                   admins
    host_notifications_enabled      1
    service_notifications_enabled   1
    host_notification_period        24x7
    service_notification_period     24x7
    host_notification_options       d,u,r
    service_notification_options    w,u,c,r
    host_notification_commands      notify-host-by-email
    service_notification_commands   notify-service-by-email
    email                           email_address
    }

define contact{

    contact_name                    admin
    alias                           admin2
    contactgroups                   admins
    host_notifications_enabled      1
    service_notifications_enabled   1
    host_notification_period        24x7
    service_notification_period     24x7
    host_notification_options       d,u,r
    service_notification_options    w,u,c,r
    host_notification_commands      notify-host-by-email
    service_notification_commands   notify-service-by-email
    email                           email_address
    }

define contactgroup{
contactgroup_name admins
alias Administrators
members admin1, admin2
}

####################################################################################

Definition of a service

####################################################################################

define service{

    host_name               server
    service_description     C:\ Drive Space
    check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
    max_check_attempts      1
    check_period            24x7
    notification_interval   60
    notification_period     24x7

contact_groups          admins
    }

##########################################################

Definition for a Host

##########################################################

define host{

    host_name               server
    alias                   winserver
    address                192.168.2.100
    max_check_attempts      5
    check_period            24x7
    contact_groups          admins
    notification_interval   60
    notification_period     24x7
    }

##############################################################

Definition of time period

##############################################################

define timeperiod{
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}

Thanks alot