Command not defined
Posted: Mon Mar 24, 2014 10:41 am
Hi!
I read this forum 2 days, but don't help my problem.
I installed a nagios 4, and a host with NRPE 2.14. I configured the nrpe.cfg file, and some hardcoded command works fine, but the check_http is add a NRPE: Command 'check_http' not defined error.
I restarted the xinetd, the nrpe, but dont changed.
This is my hardcoded command lines:
The check_user, check_load, check_total_procs commands working fine. The check_http drop the error, but the
command under the libexec folder run without error.
I copy the hosts.cfg:
My brain is out...
What is the problem?
Thank you!
I read this forum 2 days, but don't help my problem.
I installed a nagios 4, and a host with NRPE 2.14. I configured the nrpe.cfg file, and some hardcoded command works fine, but the check_http is add a NRPE: Command 'check_http' not defined error.
I restarted the xinetd, the nrpe, but dont changed.
This is my hardcoded command lines:
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_http]=/usr/local/nagios/libexec/check_http -H localhost
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Code: Select all
./check_http -H localhost
I copy the hosts.cfg:
Code: Select all
## Default Linux Host Template ##
define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}
## Default
define host{
use linux-box ; Inherit default value$
host_name X ; The name we're giving$
alias CentOS 6 ; A longer name for the$
address x.x.x.x ; IP address of Remo$
contacts Peter
}
What is the problem?
Thank you!