Hello everybody,
I have service, that is configured via puppet and has the following configuration, depending on the host:
apply Service "mysql" {
import "generic-service"
display_name = "mysql"
host_name = "<hostname>"
check_command = "mysql_health"
command_endpoint = host.name
vars.hostname = "<hostname>"
vars.mode = "connection-time"
vars.username = "<user>"
vars.password = "<password>"
assign where host.name == "<hostname>"
}
When I execute the plugin in the cli with the corresponding data on the host itself, the plugin gives back the expected nagios output (OK, WARNING, etc).
But in the Icingaweb2 Interface, no matter what mode I select, I always receive the error message:
Please select a mode Copyright (c) 2009 Gerhard Lausser Check various parameters of MySQL databases Usage: [...]
The arguments arrive in the config, the plugin is the right one (otherwise there wouldn’t be an error message specific to it) and the variables I use like password and username are the exact same (and also don’t seem to be the problem).
In Icingaweb2, there even is a section at the bottom of the service window called ’ Custom Variables’, where there is a line indicating that the mode variable is set to ‘connection-time’ (or other modes if I change it).
I don’t know where to look for clues as there are no error logs for the specific service.
Has anyone ever encountered this kind of problem?
With regards and cheers
