Class AbstractSnmpCollector

    • Field Detail

      • SNMP_STORAGE_PRIMARY

        public static final java.lang.String SNMP_STORAGE_PRIMARY
        Valid values for the 'snmpStorageFlag' attribute in datacollection-config XML file. "primary" = only primary SNMP interface should be collected and stored "all" = all primary SNMP interfaces should be collected and stored
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSnmpCollector

        public AbstractSnmpCollector()
    • Method Detail

      • serviceName

        public java.lang.String serviceName()
        Returns the name of the service that the plug-in collects ("SNMP").
        Returns:
        The service that the plug-in collects.
      • initialize

        public void initialize()
        Description copied from interface: ServiceCollector
        Initialize the collector. This call will be invoked in OpenNMS before any other calls to the collector are made. This function may be invoked several times during the lifetime or the collector.
        Specified by:
        initialize in interface ServiceCollector
        Overrides:
        initialize in class AbstractServiceCollector
      • collect

        public abstract CollectionSet collect​(CollectionAgent agent,
                                              java.util.Map<java.lang.String,​java.lang.Object> parameters)
                                       throws CollectionException
        Invokes a collection on the object. This call will be performed in both OpenNMS and Minion. Perform data collection.
        Parameters:
        agent - a org.opennms.netmgt.collectd.CollectionAgent object.
        parameters - a Map object.
        Returns:
        a org.opennms.netmgt.config.collector.CollectionSet object.
        Throws:
        CollectionException
      • getRrdRepository

        public RrdRepository getRrdRepository​(java.lang.String collectionName)
        Retrieve the RrdRepository configuration for the given collection. This call will always be performed in OpenNMS.
        Parameters:
        collectionName - a String object.
        Returns:
        a RrdRepository object.