Page 1 of 1
NAGIOS STATUS Unknown "USAGE:"
Posted: Wed Feb 27, 2013 1:42 pm
by otaviorievert
Hi guys! And afternoon.
Right now I installed the nagios core 3.XX and already configure the NSClient++ on the windows hosts. But, when I go to nagios page, I see the following error
SrvNAME - CPU Load - UNKNOWN 02-27-2013 15:28:46 6d 7h 5m 43s 3/3 Usage:
Someone knows how to fix it?

Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Wed Feb 27, 2013 1:50 pm
by abrist
Could you post the command definition and the service definition in a code wrap?
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Thu Feb 28, 2013 6:15 am
by otaviorievert
Of course.
Code: Select all
define service {
host_name SrvBKP01
notification_options w,u,c,r
service_description HardDrive C
service_description HardDrive
check_command check_nt!USEDDISKSPACE!-l C -w 80 -c 90
}
Code: Select all
define service {
use generic-service
service_description Disco C
host_name SrvBKP01
notification_options w,u,c,r
check_command check_nt!USEDDISKSPACE! -w 80 -c 90
}
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Thu Feb 28, 2013 2:11 pm
by abrist
These are definitions for hard disk volume checks, not cpu load. Which do you want to work on first? If disk checks, I need the error you are receiving, if load, I will need the definitions for those commands.
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Fri Mar 01, 2013 8:16 am
by otaviorievert
abrist wrote:These are definitions for hard disk volume checks, not cpu load. Which do you want to work on first? If disk checks, I need the error you are receiving, if load, I will need the definitions for those commands.
The error occurs on CPULOAD and USEDDISKSPACE, on nagios they get the unknown status and on status description "usage:"
Code: Select all
define service {
host_name SrvBKP01
notification_options w,u,c,r
service_description HardDrive C
service_description HardDrive
check_command check_nt!CPULOAD!-l 5,80,90
}
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Fri Mar 01, 2013 11:35 am
by slansing
You should remove one of those two service definitions, also you will need to remove the extra spaces between the -l parameters and the flag:
From:
Code: Select all
check_command check_nt!CPULOAD!-l 5,80,90
To:
Code: Select all
check_command check_nt!CPULOAD!-l 5,80,90
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Fri Mar 01, 2013 1:05 pm
by otaviorievert
slansing wrote:You should remove one of those two service definitions, also you will need to remove the extra spaces between the -l parameters and the flag:
From:
Code: Select all
check_command check_nt!CPULOAD!-l 5,80,90
To:
Code: Select all
check_command check_nt!CPULOAD!-l 5,80,90
I do that, but the error still occurs.
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Fri Mar 01, 2013 3:30 pm
by abrist
What errors are you receiving logs?
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Wed Mar 06, 2013 11:11 am
by gshergill
Hi otaviorievert,
Code: Select all
define service {
host_name SrvBKP01
notification_options w,u,c,r
service_description HardDrive C
service_description HardDrive
check_command check_nt!CPULOAD!-l 5,80,90
}
I'm slightly confused here - You have "service_description" twice, and you haven't defined a "use" line either. As far as I can see, you are missing necessary lines for defining a service (hence requirement of "use") and secondly service_description is a unique identifier, and you have it appearing twice here with two separate names, as well as them being the same names for another service for the host:
(from your 2nd post)
Code: Select all
define service {
host_name SrvBKP01
notification_options w,u,c,r
service_description HardDrive C
service_description HardDrive
check_command check_nt!USEDDISKSPACE!-l C -w 80 -c 90
}
The lines I am referring to are:
Code: Select all
service_description HardDrive C
service_description HardDrive
It may be worth removing one of these from USEDDISKSPACE on host SrvBKP01, and defining a new name for CPULOAD on SrvBKP01.
Also add:
Kind Regards,
Gary Shergill
Re: NAGIOS STATUS Unknown "USAGE:"
Posted: Wed Mar 06, 2013 1:54 pm
by abrist
@otaviorievert: did you follow gshergill's suggestions? Did they resolve your problems?
@gshergill: Spot on.