check_nt - error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
spideyz29
Posts: 6
Joined: Fri Nov 09, 2012 2:15 pm

check_nt - error

Post by spideyz29 »

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 of my windows.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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt - error

Post by slansing »

Try making the "-l" value a capital letter, that should fix it for you.
spideyz29
Posts: 6
Joined: Fri Nov 09, 2012 2:15 pm

Re: check_nt - error

Post by spideyz29 »

Good morning,

Thank you for the answer slansing, i tried to capitalize the L in windows.cfg, however i still get the same email notification. Is there somewhere else i would need to change that as well?

Thanks in advance
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt - error

Post by slansing »

Make the "-l" value as in what is attached to it a capital letter, in your case it would be C for the drive you are monitoring.
spideyz29
Posts: 6
Joined: Fri Nov 09, 2012 2:15 pm

Re: check_nt - error

Post by spideyz29 »

Thank you very much slansing!!

That did the trick, my notification email now gives me the info i need.

Again thanks for your help on this matter.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt - error

Post by slansing »

No problem, have a great day!
Locked