monitoring/commands: Throw `LogicException' if the remote host is not set in `RemoteCommandFile'
refs #6593
This commit is contained in:
parent
6fdc436f65
commit
6324192127
|
@ -153,6 +153,9 @@ class RemoteCommandFile implements CommandTransportInterface
|
||||||
if (! isset($this->path)) {
|
if (! isset($this->path)) {
|
||||||
throw new LogicException;
|
throw new LogicException;
|
||||||
}
|
}
|
||||||
|
if (! isset($this->host)) {
|
||||||
|
throw new LogicException;
|
||||||
|
}
|
||||||
Logger::debug(
|
Logger::debug(
|
||||||
sprintf(
|
sprintf(
|
||||||
mt('monitoring', 'Sending external Icinga command "%s" to the remote command file "%s:%u%s"'),
|
mt('monitoring', 'Sending external Icinga command "%s" to the remote command file "%s:%u%s"'),
|
||||||
|
|
Loading…
Reference in New Issue