Dear Team,
I have create php based plugin. In which getting error NRPE:Command 'check_website' not defined.
I have using the following code in the following files:-
/etc/nagios/nrpe.cfg
log_facility=daemon
pid_file=/var/run/nrpe/nrpe.pid
server_port=5666
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=127.0.0.1 192.9.200.178
dont_blame_nrpe=1
debug=0
command_timeout=60
connection_timeout=300
include_dir=/etc/nrpe.d/
command[usedspace_php]=/usr/lib64/nagios/plugins/usedspace.php
command[check_website]=/usr/lib64/nagios/plugins/check_website.php
/usr/local/nagios/etc/services.cfg
define service {
use generic-service
host_name localhost
service_description Custom Disk Checker In PHP
check_command check_nrpe!usedspace_php
}
define service {
use generic-service
host_name localhost
service_description Check website
check_command check_nrpe!check_website
}
/usr/local/nagios/etc/services.cfg/objects/commands.cfg
define command{
command_name usedspace_php
command_line $USER1$/usedspace_php -H $HOSTADDRESS$ -c $ARG1$
}
define command{
command_name check_website
command_line $USER1$/check_website -H $HOSTADDRESS$ -c $ARG1$
}
Please help to resolve this.
NRPE: Command 'check_website' not defined
-
- Posts: 4
- Joined: Sat Aug 20, 2016 12:13 am
NRPE: Command 'check_website' not defined
Thanks & Regards
Sk
Sk
Re: NRPE: Command 'check_website' not defined
You should have another NRPE configuration file which will hold your command definitions. Do you notice a nrpe.cfg in your /etc/nrpe.d/ folder?
Former Nagios Employee