It seems that you are using the a shortname for the host identifier
while the configuration has a the fqdn.
Try to run the test with the fqdn and see if that works.
Assaf
On 15/04/16 12:16, Bata Bálint András wrote:
Hi Guys,
I try to make an nrpe disk check. Checkconfig is ok, manual command works:
root@icingaserver:/etc/icinga2# /usr/lib/nagios/plugins/check_nrpe -H
icingaclient -c 'check_disk' -a '20%' '10%' '/'
DISK OK - free space: / 87523 MB (95% inode=97%);|
/=4087MB;77228;86882;0;96536
In Icinga web I can see, that Icinga interprets the command and
arguments well:
Nrpe Arguments
20%
10%
/
Nrpe Command
check_disk
But I get an error message:
Could not resolve hostname : Name or service not known
Host resolvation is good as you can see above by check_nrpe command.
Check_nrpe works: If I rename /usr/lib/nagios/plugins/check_nrpe, I
get an error message.
My configuration:
object CheckCommand "nrpe" {
import "plugin-check-command"
command = [PluginDir + "/check_nrpe" ]
arguments = {
"-H" = "$host$"
"-c" = "$check$"
"-t", "$timeout$"
"-a", "$args$"
}
}
object Service "nrpe-disk-/" {
import "generic-service"
host_name = "icingaclient.xxx.yyy"
check_command = "nrpe"
vars.nrpe_command = "check_disk"
vars.nrpe_arguments = [ "20%", "10%", "/" ]
}
Please help if you can! Thank you!
Best Regards:
Balint
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users