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 intDEFAULT_PORTConstantDEFAULT_PORT=5666static intDEFAULT_TIMEOUTConstantDEFAULT_TIMEOUT=10
-
Constructor Summary
Constructors Constructor Description CheckNrpe()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NrpePacketexecuteQuery(String host, int port, String buffer, int padding)executeQuerystatic NrpePacketexecuteQuery(String host, String buffer)executeQuerystatic NrpePacketexecuteQuery(String host, String buffer, int padding)executeQuerystatic voidmain(String[] argv)mainstatic StringnextArg(String[] argv, int i)nextArgstatic NrpePacketsendPacket(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
-
-