Can you run the command successfully from the CLI as nagios user?
Code: Select all
su - nagios -c '/usr/local/nagios/libexec/check_nrpe -H <remote_ip> -p 5666 -c check_xvda1'
Code: Select all
su - nagios -c '/usr/local/nagios/libexec/check_nrpe -H <remote_ip> -p 5666 -c check_xvda1'
yupbrayshawuk wrote:Thanks for quick response, however:
nagios@server:/usr/local/nagios/libexec$ ./check_nrpe -H <remote_ip> -p 5666 -c check_xvda1
DISK OK - free space: / 27129 MB (36% inode=10%);| /=46359MB;68940;72770;0;76601
Code: Select all
su - nagios -c '/usr/local/nagios/libexec/check_nrpe -H <remote_ip> -p 5666 -c check_xvda1'
Code: Select all
grep nag /etc/group
re-installed nrpe on the remote system
Code: Select all
<TopLevel>
[Other stuff here]
<Success>true</Success>
</topLevel>
Code: Select all
define command {
command_name web_diag_status
command_line $USER1$/check_http_xpath.pl -S -k -H $HOSTADDRESS$ -u /Path/To/Web/Status -c '/Status/Success==true'
}
Code: Select all
define command {
command_name web_diag_status
command_line $USER1$/check_http_xpath.pl -S -k -H $HOSTADDRESS$ -u /Path/To/Web/Status -c '/Status/Success=="true"'
}