Page 1 of 1

check_disk is not working for remote host

Posted: Thu Sep 19, 2013 6:08 pm
by kalyandrug
Hi ,

my configuration in commands.cfg

define command {
command_name check_nrpe_1arg
command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

#remote monitor
define command{
command_name check_disk
command_line $USER1$/check_nrpe_1arg -H $HOSTADDRESS$ -c check_disk
}

Service.cfg

define service{
use generic-service
host_name remotehostname
service_description Disk Monitoring
contact_groups admins
#check_command check_nrpe!check_all_disks
check_command check_nrpe_1arg!check_disk
max_check_attempts 8
}

Verified check_disk working in remote host
From nagios I got following error
Disk Monitoring
CRITICAL 09-19-2013 15:58:17 0d 0h 36m 37s 8/8 (Return code of 127 is out of bounds - plugin may be missing)

Please help me in this regard.

Thanks

Re: check_disk is not working for remote host

Posted: Fri Sep 20, 2013 9:46 am
by gshergill
Hi kalyandrug,

Can you run the following command from the nagios server command line?

Code: Select all

/usr/lib64/nagios/plugins/check_nrpe -H <remote server ip>
Thank you.

Kind Regards,

Gary Shergill

Re: check_disk is not working for remote host

Posted: Fri Sep 20, 2013 11:50 am
by sreinhardt
Thanks Gary! kalyandrug please let us know what is returned when you have a chance.

Re: check_disk is not working for remote host

Posted: Sun Sep 22, 2013 1:15 pm
by kalyandrug
Gary,

I got following output

[root@tpnstage libexec]# ./check_nrpe -H rh2
NRPE v2.14

Regards,
Ramesh Kalyandrug

Re: check_disk is not working for remote host

Posted: Mon Sep 23, 2013 3:59 am
by gshergill
Hi kalyandrug,

From the command line can you run;

Code: Select all

./check_nrpe -H rh2 -c check_disk
From the remote machine, could you post the nrpe.cfg please? Remember to remove any sensitive information.

Thank you.

Kind Regards,

Gary Shergill

Re: check_disk is not working for remote host

Posted: Mon Sep 23, 2013 11:22 am
by lmiltchev
Thanks, gshergill!

kalyandrug
Verified check_disk working in remote host
Can you show the command you ran on the remote box, and the output of it?