public abstract class SnmpMonitorStrategy extends AbstractServiceMonitor
Abstract SnmpMonitorStrategy class.
| Modifier and Type | Field and Description |
|---|---|
static String |
EQUALS
Constant
EQUALS="=" |
static String |
GREATER_THAN
Constant
GREATER_THAN=">" |
static String |
GREATER_THAN_EQUALS
Constant
GREATER_THAN_EQUALS=">=" |
protected boolean |
hex |
static String |
LESS_THAN
Constant for less-than operand
|
static String |
LESS_THAN_EQUALS
Constant
LESS_THAN_EQUALS="<=" |
static String |
MATCHES
Constant
MATCHES="~" |
static String |
NOT_EQUAL
Constant
NOT_EQUAL="!=" |
| Constructor and Description |
|---|
SnmpMonitorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
SnmpAgentConfig |
getAgentConfig(MonitoredService svc,
Map<String,Object> parameters) |
Map<String,Object> |
getRuntimeAttributes(MonitoredService svc,
Map<String,Object> parameters) |
String |
getStringValue(SnmpValue result) |
boolean |
meetsCriteria(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.
|
getEffectiveLocation, getKeyedBoolean, getKeyedInstance, getKeyedInteger, getKeyedLong, getKeyedObject, getKeyedString, getServicePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpollpublic static final String LESS_THAN
public static final String GREATER_THAN
GREATER_THAN=">"public static final String LESS_THAN_EQUALS
LESS_THAN_EQUALS="<="public static final String GREATER_THAN_EQUALS
GREATER_THAN_EQUALS=">="public static final String EQUALS
EQUALS="="public static final String NOT_EQUAL
NOT_EQUAL="!="public static final String MATCHES
MATCHES="~"protected boolean hex
public Map<String,Object> getRuntimeAttributes(MonitoredService svc, Map<String,Object> parameters)
getRuntimeAttributes in interface ServiceMonitorgetRuntimeAttributes in class AbstractServiceMonitorsvc - Includes details about to the service being monitored.parameters - Includes the service parameters defined in poller-configuration.xml and those
returned by ServiceMonitor.getRuntimeAttributes(MonitoredService, Map).ServiceMonitor.poll(MonitoredService, Map).public SnmpAgentConfig getAgentConfig(MonitoredService svc, Map<String,Object> parameters)
Copyright © 2022. All rights reserved.