Hello

I'm using icinga 2 and I have some command checks with arguments, for
instance:

object CheckCommand "check_nrpe"{
  import "plugin-check-command"
  command = PluginDir + "/check_nrpe -H $host.address$ $args$"

  vars.args =""
}

object Service "arecibo - Chequeo Disco 2 (NRPE)" {
  import "generic-service"
  host_name     = "arecibo"
  check_command = "check_nrpe"

  vars.args     = "-c check_disk2"
}

Problem is icinga2 is adding quotes around variable substitution and it
makes command to fail:

# /usr/lib/nagios/plugins/check_nrpe -H '158.42.250.101' '-c check_disk2'

NRPE: Command ' check_disk2' not defined

# /usr/lib/nagios/plugins/check_nrpe -H '158.42.250.101' -c check_disk2

DISK OK - free space: /var/log/nagios3 7469 MB (19% inode=99%);|
/var/log/nagios3=30799MB;40237;40227;0;40317

Is there any way to solve this or to remove those quotes from checks??


Thanks!
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to