Deleting variables by using the API

Hi,

the http CheckCommand from the ITL sets http_uri to default /. If you really don’t want to use it, I’d suggest to use a different CheckCommand then, e.g. something like this:

object CheckCommand "http-no-uri" {
  import "http"

  arguments.remove("-u")
}

References

Dictionary#remove: https://icinga.com/docs/icinga2/latest/doc/18-library-reference/#dictionaryremove
Templates: https://icinga.com/docs/icinga2/latest/doc/03-monitoring-basics/#templates (“You can also import existing non-template objects.”).

Cheers,
Michael