org.opennms.netmgt.poller.nrpe
Class CheckNrpe

java.lang.Object
  extended by org.opennms.netmgt.poller.nrpe.CheckNrpe

public class CheckNrpe
extends Object


Field Summary
static int DEFAULT_PORT
           
static int DEFAULT_TIMEOUT
           
 
Constructor Summary
CheckNrpe()
           
 
Method Summary
static NrpePacket executeQuery(String host, int port, String buffer, int padding)
           
static NrpePacket executeQuery(String host, String buffer)
           
static NrpePacket executeQuery(String host, String buffer, int padding)
           
static void main(String[] argv)
           
static String nextArg(String[] argv, int i)
           
static NrpePacket sendPacket(short type, short resultCode, String buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

CheckNrpe

public CheckNrpe()
Method Detail

executeQuery

public static NrpePacket executeQuery(String host,
                                      String buffer)
                               throws Exception
Throws:
Exception

executeQuery

public static NrpePacket executeQuery(String host,
                                      String buffer,
                                      int padding)
                               throws Exception
Throws:
Exception

executeQuery

public static NrpePacket executeQuery(String host,
                                      int port,
                                      String buffer,
                                      int padding)
                               throws Exception
Throws:
Exception

sendPacket

public static NrpePacket sendPacket(short type,
                                    short resultCode,
                                    String buffer)
                             throws Exception
Throws:
Exception

main

public static void main(String[] argv)
                 throws Exception
Throws:
Exception

nextArg

public static String nextArg(String[] argv,
                             int i)
                      throws Exception
Throws:
Exception


Copyright © 2009. All Rights Reserved.