What is your current active service and checkcommand?
Run: # icinga2 object list -t Service -n '*!nrpe-disk-/' # icinga2 object list -t CheckCommand -n 'nrpe' -Gerald On 18.04.16 14:33, Bata Bálint András wrote:
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:[email protected]] On Behalf Of Gerald Vogt Sent: Monday, April 18, 2016 2:10 PM To: [email protected] 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 [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
