public class NagiosSettings extends Object
NagiosSettingsBuilder
Constructor and Description |
---|
NagiosSettings() |
Modifier and Type | Method and Description |
---|---|
void |
enableLargeMessageSupport()
Leverage support NSCA 2.9.1 for longer messages of 4096 chars
instead of previous limit of 512 chars.
|
boolean |
equals(Object obj) |
int |
getConnectTimeout()
The connection timeout
|
Encryptor |
getEncryptor()
The
Encryptor used to encrypt the passive check |
int |
getMaxMessageSizeInChars()
The maximum number of chars in message sent to NSCA before
the message is truncated
see enableLargeMessageSupport
|
String |
getNagiosHost()
The host or IP of the Nagios host running the NSCA add-on
|
String |
getPassword()
The password configured in the ncsa.cfg file used by NSCA
|
int |
getPort()
The port on which NSCA is listening
|
int |
getTimeout()
The socket timeout to use when sending the passive check
|
int |
hashCode() |
void |
setConnectTimeout(int connectTimeout)
Set the connection timeout, default is 5000 ms
|
void |
setEncryption(Encryption encryption)
The
Encryption to use to encrypt the passive check |
void |
setEncryptor(Encryptor encryptor)
The
Encryptor to use to encrypt the passive check |
void |
setNagiosHost(String nagiosHost)
The host or IP of the Nagios host running the NSCA add-on
|
void |
setPassword(String password)
The password configured in the ncsa.cfg file used by NSCA
|
void |
setPort(int port)
The port on which NSCA is listening
|
void |
setTimeout(int timeout)
The socket timeout to use when sending the passive check
|
String |
toString() |
public int getConnectTimeout()
public Encryptor getEncryptor()
Encryptor
used to encrypt the passive checkEncryptor
public String getNagiosHost()
public String getPassword()
public int getPort()
public int getTimeout()
public void setConnectTimeout(int connectTimeout)
connectTimeout
- timeout in mspublic void setEncryption(Encryption encryption)
Encryption
to use to encrypt the passive checkencryption
- encryption algorithmpublic void setEncryptor(Encryptor encryptor)
Encryptor
to use to encrypt the passive checkencryptor
- message encryptorpublic void setNagiosHost(String nagiosHost)
nagiosHost
- the host or IP, defaults to localhostpublic void setPassword(String password)
password
- the passwordpublic void setPort(int port)
port
- the port, defaults to 5667public void setTimeout(int timeout)
timeout
- the timeout in ms, defaults to 10000 mspublic void enableLargeMessageSupport()
public int getMaxMessageSizeInChars()
Copyright © Nov 2008–2019 JSend NSCA. All rights reserved.