Class SnmpMonitorStrategy
- java.lang.Object
-
- org.opennms.netmgt.poller.support.AbstractServiceMonitor
-
- org.opennms.netmgt.poller.monitors.SnmpMonitorStrategy
-
- All Implemented Interfaces:
ServiceMonitor
- Direct Known Subclasses:
BgpSessionMonitor,CiscoIpSlaMonitor,CiscoPingMibMonitor,DiskUsageMonitor,DskTableMonitor,HostResourceSwRunMonitor,LaTableMonitor,LogMatchTableMonitor,NetScalerGroupHealthMonitor,OmsaStorageMonitor,OpenManageChassisMonitor,PercMonitor,PrTableMonitor,SnmpMonitor
public abstract class SnmpMonitorStrategy extends AbstractServiceMonitor
Abstract SnmpMonitorStrategy class.
- Version:
- $Id: $
- Author:
- david
-
-
Field Summary
Fields Modifier and Type Field Description static StringEQUALSConstantEQUALS="="static StringGREATER_THANConstantGREATER_THAN=">"static StringGREATER_THAN_EQUALSConstantGREATER_THAN_EQUALS=">="protected booleanhexstatic StringLESS_THANConstant for less-than operandstatic StringLESS_THAN_EQUALSConstantLESS_THAN_EQUALS="<="static StringMATCHESConstantMATCHES="~"static StringNOT_EQUALConstantNOT_EQUAL="!="
-
Constructor Summary
Constructors Constructor Description SnmpMonitorStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpAgentConfiggetAgentConfig(MonitoredService svc, Map<String,Object> parameters)Map<String,Object>getRuntimeAttributes(MonitoredService svc, Map<String,Object> parameters)StringgetStringValue(SnmpValue result)booleanmeetsCriteria(SnmpValue result, String operator, String operand)Verifies that the result of the SNMP query meets the criteria specified by the operator and the operand from the configuration file.-
Methods inherited from class org.opennms.netmgt.poller.support.AbstractServiceMonitor
getEffectiveLocation, getKeyedBoolean, getKeyedInstance, getKeyedInteger, getKeyedLong, getKeyedObject, getKeyedString, getServiceProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.poller.ServiceMonitor
poll
-
-
-
-
Field Detail
-
LESS_THAN
public static final String LESS_THAN
Constant for less-than operand- See Also:
- Constant Field Values
-
GREATER_THAN
public static final String GREATER_THAN
ConstantGREATER_THAN=">"- See Also:
- Constant Field Values
-
LESS_THAN_EQUALS
public static final String LESS_THAN_EQUALS
ConstantLESS_THAN_EQUALS="<="- See Also:
- Constant Field Values
-
GREATER_THAN_EQUALS
public static final String GREATER_THAN_EQUALS
ConstantGREATER_THAN_EQUALS=">="- See Also:
- Constant Field Values
-
EQUALS
public static final String EQUALS
ConstantEQUALS="="- See Also:
- Constant Field Values
-
NOT_EQUAL
public static final String NOT_EQUAL
ConstantNOT_EQUAL="!="- See Also:
- Constant Field Values
-
MATCHES
public static final String MATCHES
ConstantMATCHES="~"- See Also:
- Constant Field Values
-
hex
protected boolean hex
-
-
Method Detail
-
getRuntimeAttributes
public Map<String,Object> getRuntimeAttributes(MonitoredService svc, Map<String,Object> parameters)
- Specified by:
getRuntimeAttributesin interfaceServiceMonitor- Overrides:
getRuntimeAttributesin classAbstractServiceMonitor- Parameters:
svc- Includes details about to the service being monitored.parameters- Includes the service parameters defined in poller-configuration.xml and those returned byServiceMonitor.getRuntimeAttributes(MonitoredService, Map).- Returns:
- Additional attributes, which should be added to the parameter map before calling
ServiceMonitor.poll(MonitoredService, Map).
-
getAgentConfig
public SnmpAgentConfig getAgentConfig(MonitoredService svc, Map<String,Object> parameters)
-
-