This post saved my day.
So I modified /icinga2/zones.d/global-templates/commands/xmppng.conf
and add the parameters there as seen here:
object CheckCommand "xmppng" {
import "plugin-check-command"
command = ["/usr/local/lib/nagios/plugins/check_xmppng"]
arguments = {
"-H" = {
value = "$xmppng_address$"
description = "Hostname of the xmpp server"
}
"--servername" = {
value = "$xmppng_servername$"
description = "Domainame of the xmpp server"
}
}
}
I know this is documented somewhere, but it would be nice to have a quick start up in exchange.icinga.com