if (port <= 0) {
throw new IllegalArgumentException("Port must be a positive number on " + this);
}
// create settings
nagiosSettings = new NagiosSettings();
nagiosSettings.setConnectTimeout(getConnectionTimeout());
nagiosSettings.setTimeout(getTimeout());
nagiosSettings.setNagiosHost(getHost());
nagiosSettings.setPort(getPort());
nagiosSettings.setPassword(getPassword());