Class CheckNrpe
- java.lang.Object
-
- org.opennms.netmgt.poller.monitors.nrpe.CheckNrpe
-
public abstract class CheckNrpe extends Object
CheckNrpe class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PORT
ConstantDEFAULT_PORT=5666
static int
DEFAULT_TIMEOUT
ConstantDEFAULT_TIMEOUT=10
-
Constructor Summary
Constructors Constructor Description CheckNrpe()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NrpePacket
executeQuery(String host, int port, String buffer, int padding)
executeQuerystatic NrpePacket
executeQuery(String host, String buffer)
executeQuerystatic NrpePacket
executeQuery(String host, String buffer, int padding)
executeQuerystatic void
main(String[] argv)
mainstatic String
nextArg(String[] argv, int i)
nextArgstatic NrpePacket
sendPacket(short type, short resultCode, String buffer)
sendPacket
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
ConstantDEFAULT_PORT=5666
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
ConstantDEFAULT_TIMEOUT=10
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeQuery
public static NrpePacket executeQuery(String host, String buffer) throws Exception
executeQuery
-
executeQuery
public static NrpePacket executeQuery(String host, String buffer, int padding) throws Exception
executeQuery
-
executeQuery
public static NrpePacket executeQuery(String host, int port, String buffer, int padding) throws Exception
executeQuery
-
sendPacket
public static NrpePacket sendPacket(short type, short resultCode, String buffer) throws Exception
sendPacket
-
-