Package org.apache.log4j.nagios

Examples of org.apache.log4j.nagios.Nsca


  public static final int NAGIOS_WARN     = Nsca.NAGIOS_WARN;
  public static final int NAGIOS_CRITICAL = Nsca.NAGIOS_CRITICAL;
  public static final int NAGIOS_UNKNOWN  = Nsca.NAGIOS_UNKNOWN;
 
  public static void sendNsca(String nagiosHost,int nagiosPort,String reportingHost,String reportingService,String msg,int state) {
    Nsca nsca = new Nsca();
    try {
      nsca.send_nsca(nagiosHost, ""+nagiosPort, reportingHost, reportingService, msg, state, 1);
    } catch (Throwable e) {
     log.warn(e);
    }
    
  }
View Full Code Here


  public static final int NAGIOS_WARN     = Nsca.NAGIOS_WARN;
  public static final int NAGIOS_CRITICAL = Nsca.NAGIOS_CRITICAL;
  public static final int NAGIOS_UNKNOWN  = Nsca.NAGIOS_UNKNOWN;
 
  public static void sendNsca(String nagiosHost,int nagiosPort,String reportingHost,String reportingService,String msg,int state) {
    Nsca nsca = new Nsca();
    try {
      nsca.send_nsca(nagiosHost, ""+nagiosPort, reportingHost, reportingService, msg, state, 1);
    } catch (Throwable e) {
     log.warn(e);
    }
    
  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.nagios.Nsca

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.