Hi,

@Gerald:
 I removed CheckCommand definition, now I use only the nrpe Service 
configuration, which is copied from Icinga docs:

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%", "/" ]
}

But error message is the same.


@Assaf:
Host resolving is fine, I wrote both the short and long name to /etc/hosts.


Regards,
Balint



-----Original Message-----
From: icinga-users [mailto:icinga-users-boun...@lists.icinga.org] On Behalf Of 
Gerald Vogt
Sent: Monday, April 18, 2016 2:10 PM
To: icinga-users@lists.icinga.org
Subject: Re: [icinga-users] nrpe doesn´t work (Could not resolve hostname : 
Name or service not known)


On 15.04.16 11:16, Bata Bálint András wrote:
> object CheckCommand "nrpe" {
>
>          import "plugin-check-command"
>
>          command = [PluginDir + "/check_nrpe" ]
>
>          arguments = {
>
>          "-H" = "$host$"
>
>          "-c" = "$check$"
>
>          "-t", "$timeout$"
>
>          "-a", "$args$"
>
>          }
>
> }

Why do you create your own custom nrpe CheckCommand definition?

> 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%", "/" ]
>
> }

With your own definition, you have to vars.host, vars.check, vars.timeout and 
vars.args.

Otherwise use the original CheckCommand which comes with icinga2 and that 
actually uses those arguments as defined in your service...

-Gerald
_______________________________________________
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

Reply via email to