getSNMPValues(report, schedules);
}
private void getSNMPValues(MeasurementReport report, Set<MeasurementScheduleRequest> schedules) throws Exception {
SNMPSession snmpSession = this.resourceContext.getParentResourceComponent().getSNMPSession();
int primaryIndex = getWwwServiceIndex();
boolean ping = snmpSession.ping();
boolean snmpMetricsSupported = primaryIndex >= 0 && ping;
if (LOG.isDebugEnabled()) {
if (snmpMetricsSupported) {
LOG.debug("SNMP metrics collection supported for VirtualHost service #" + primaryIndex);