check_disk is not working for remote host

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
kalyandrug
Posts: 7
Joined: Mon Aug 19, 2013 3:48 pm

check_disk is not working for remote host

Post 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
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: check_disk is not working for remote host

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_disk is not working for remote host

Post by sreinhardt »

Thanks Gary! kalyandrug please let us know what is returned when you have a chance.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
kalyandrug
Posts: 7
Joined: Mon Aug 19, 2013 3:48 pm

Re: check_disk is not working for remote host

Post by kalyandrug »

Gary,

I got following output

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

Regards,
Ramesh Kalyandrug
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: check_disk is not working for remote host

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_disk is not working for remote host

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked