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
check_disk is not working for remote host
Re: check_disk is not working for remote host
Hi kalyandrug,
Can you run the following command from the nagios server command line?
Thank you.
Kind Regards,
Gary Shergill
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>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
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
Gary,
I got following output
[root@tpnstage libexec]# ./check_nrpe -H rh2
NRPE v2.14
Regards,
Ramesh Kalyandrug
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
Hi kalyandrug,
From the command line can you run;
From the remote machine, could you post the nrpe.cfg please? Remember to remove any sensitive information.
Thank you.
Kind Regards,
Gary Shergill
From the command line can you run;
Code: Select all
./check_nrpe -H rh2 -c check_diskThank you.
Kind Regards,
Gary Shergill
Re: check_disk is not working for remote host
Thanks, gshergill!
kalyandrug
kalyandrug
Can you show the command you ran on the remote box, and the output of it?Verified check_disk working in remote host
Be sure to check out our Knowledgebase for helpful articles and solutions!